Class: EncoderError
@divine/uri.EncoderError
An IOError subclass thrown by the Encoder class.
Hierarchy
↳
EncoderError
Constructors
constructor
• new EncoderError(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