Class: ParserError
@divine/uri.ParserError
An IOError subclass thrown by the Parser class.
Hierarchy
↳
ParserError
Constructors
constructor
• new ParserError(message, cause?, data?)
Constructs a new IOError exception.
Parameters
| Name | Type | Description |
|---|---|---|
message | string | The error message. |
cause? | unknown | If this error was caused by another exception, pass it here to link it. |
data? | object & Metadata | Custom, per-exception information associated with the exception. |
Inherited from
Defined in
Properties
cause
• Optional cause: Error
The Error that caused this exception to be thrown.
Inherited from
Defined in
data
• Optional data: object & Metadata
Custom, per-exception information associated with the exception.
Inherited from
Defined in
Methods
toString
▸ toString(): string
Converts this IOError to a string.
Returns
string