Update/correct DateTime exception documentation (#950)

This commit is contained in:
Anton Kolesnyk 2020-11-12 01:59:14 -08:00 committed by GitHub
parent 2eff3aa1b1
commit 78e34a2189
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -96,7 +96,7 @@ namespace Azure { namespace Core {
* @param fractionFormat The format for the fraction part of the Datetime. Only supported by
* RFC 3339.
*
* @throw std::length_error If year exceeds 9999, or if \p format is not recognized.
* @throw std::invalid_argument If year exceeds 9999, or if \p format is not recognized.
*/
std::string GetString(DateFormat format, TimeFractionFormat fractionFormat) const;
@ -106,7 +106,7 @@ namespace Azure { namespace Core {
*
* @param format The representation format to use.
*
* @throw std::length_error If year exceeds 9999, or if \p format is not recognized.
* @throw std::invalid_argument If year exceeds 9999, or if \p format is not recognized.
*/
std::string GetString(DateFormat format) const
{
@ -118,8 +118,7 @@ namespace Azure { namespace Core {
*
* @param fractionFormat The format that is applied to the fraction part from the RFC 3339 date.
*
* @throw std::length_error If year exceeds 9999.
* @throw std::invalid_argument If \p format is not recognized.
* @throw std::invalid_argument If year exceeds 9999, or if \p format is not recognized.
*/
std::string GetRfc3339String(TimeFractionFormat fractionFormat) const
{