This repository has been archived by the owner on Oct 7, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 14
Date day of month is too large for the associated year and month
Scott Smith edited this page Mar 16, 2018
·
2 revisions
The 'day-of-month', 29, is too large for its associated 'year' (2007) and 'month' (February).
2007-02-29?12:25:12.1-01:00
^^
In this instance, the 'day-of-month' should be in the range 1 to 28.
Name | Value | Type | Source |
---|---|---|---|
Input | 2007-02-29?12:25:12.1-01:00 | String |
The ISO8601 string being parsed |
Expected | within range | Nothing |
What the parse command is looking for |
Actual | '29' | Char |
What the parse found |
PreviousName | Nothing |
Nothing |
We don't care. |
PreviousValue | Nothing |
Nothing |
We don't care. |
PreviousType | Nothing |
Nothing |
We don't care. |
StartOffset | 8 | Int |
The displacement from the start of the string being parsed to locate the leftmost '^' |
CharCount | 2 | Int |
The number of '^' chars to position under the value |
TopLine | "The 'day-of-month', ?, is too large for its associated 'year' (?) and 'month' (?)." | String |
This error category |
BottomLine | "In this instance, the 'day-of-month' should be in the range 1 to ?." | String |
This error category |
- The Value column above describes the example values in the sample error message above.
- Here the number of 'X' is zero. The reason is that the string parsed correctly, but the validation failed.
- Note that TopLine and BottomLine have '?' marking where values will be substituted.
- Discovered that validation errors (like this one), have no need for the previous token. That is why the numerous
Nothing
above. This error structure may need some surgury.