Class: IOError
@divine/uri.IOError
A general I/O error exception. Base class for all exceptions in this module.
Hierarchy
URIError
↳
IOError
↳↳
EncoderError
↳↳
ParserError
↳↳
DBError
Constructors
constructor
• new IOError(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. |
Overrides
URIError.constructor
Defined in
Properties
cause
• Optional
cause: Error
The Error that caused this exception to be thrown.
Defined in
data
• Optional
data: object
& Metadata
Custom, per-exception information associated with the exception.
Defined in
Methods
toString
▸ toString(): string
Converts this IOError to a string.
Returns
string