DateFormatError class
Parent class for errors.
Signature:
export declare class DateFormatError extends Error
Extends: Error
Remarks
Errors with type: "warning"
do not necessarily indicate that the parser encountered an error. In addition to a human-friendly message
, may also includes the token
at which the error was encountered.
The constructor for this class is marked as internal. Third-party code should not call the constructor directly or create subclasses that extend the DateFormatError
class.
Properties
Property | Modifiers | Type | Description |
---|---|---|---|
ERROR | static | ‘error’ | |
token | DateToken | ||
type | ‘error’ | ‘warning’ | ||
WARNING | static | ‘warning’ |