Skip to content
This repository has been archived by the owner on Oct 7, 2021. It is now read-only.

Digit sequence is out of range

Scott Smith edited this page Mar 17, 2018 · 2 revisions

The fully-formatted error message

The number of minutes, 60, is out of range:

          1997-05-29?12:60:12.1-01:00
                        XX

It should be in the range 0 to 59.

Substitutions

Name Value Type Source
Input 1997-05-29?12:60:12.1-01:00 String The ISO8601 string being parsed
Expected 0 to 59 Int What the parse command is looking for
Actual 60 Int What the parse found
TopLine "The ?, ?, is out of range:" String This error category
BottomLine "It should be in the range ? to ?." String This error category

Notes

  1. The Value column above describes the example values in the sample error message above.
  2. The offset of the actual error position is calculated: it is the offset of the first digit of the invalid number.
  3. The number of 'X' is the count of the invalid number's digits.
  4. Note that TopLine and BottomLine have '?' marking where values will be substituted.