An exception thrown when an error occurs during parsing.
This exception includes the text being parsed and the error index.
An exception thrown when an error occurs during parsing. This exception includes the text being parsed and the error index.
(->date-time-parse-exception message parsed-data error-index)
(->date-time-parse-exception message parsed-data error-index cause)
Constructor.
Constructs a new exception with the specified message and cause.
message - the message to use for this exception, may be null - java.lang.String
parsed-data - the parsed text, should not be null - java.lang.CharSequence
error-index - the index in the parsed string that was invalid, should be a valid index - int
cause - the cause exception, may be null - java.lang.Throwable
Constructor. Constructs a new exception with the specified message and cause. message - the message to use for this exception, may be null - `java.lang.String` parsed-data - the parsed text, should not be null - `java.lang.CharSequence` error-index - the index in the parsed string that was invalid, should be a valid index - `int` cause - the cause exception, may be null - `java.lang.Throwable`
(get-error-index this)
Returns the index where the error was found.
returns: the index in the parsed string that was invalid, should be a valid index - int
Returns the index where the error was found. returns: the index in the parsed string that was invalid, should be a valid index - `int`
(get-parsed-string this)
Returns the string that was being parsed.
returns: the string that was being parsed, should not be null. - java.lang.String
Returns the string that was being parsed. returns: the string that was being parsed, should not be null. - `java.lang.String`
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close