Skip to main content

Class: EncoderError

@divine/uri.EncoderError

An IOError subclass thrown by the Encoder class.

Hierarchy​

Constructors​

constructor​

• new EncoderError(message, cause?, data?)

Constructs a new IOError exception.

Parameters​

NameTypeDescription
messagestringThe error message.
cause?unknownIf this error was caused by another exception, pass it here to link it.
data?object & MetadataCustom, per-exception information associated with the exception.

Inherited from​

IOError.constructor

Defined in​

uri/src/uri.ts:96

Properties​

cause​

• Optional cause: Error

The Error that caused this exception to be thrown.

Inherited from​

IOError.cause

Defined in​

uri/src/uri.ts:87


data​

• Optional data: object & Metadata

Custom, per-exception information associated with the exception.

Inherited from​

IOError.data

Defined in​

uri/src/uri.ts:96

Methods​

toString​

▸ toString(): string

Converts this IOError to a string.

Returns​

string

Inherited from​

IOError.toString

Defined in​

uri/src/uri.ts:102