Skip to main content

Class: IOError

@divine/uri.IOError

A general I/O error exception. Base class for all exceptions in this module.

Hierarchy​

Constructors​

constructor​

• new IOError(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.

Overrides​

URIError.constructor

Defined in​

uri/src/uri.ts:96

Properties​

cause​

• Optional cause: Error

The Error that caused this exception to be thrown.

Defined in​

uri/src/uri.ts:87


data​

• Optional data: object & Metadata

Custom, per-exception information associated with the exception.

Defined in​

uri/src/uri.ts:96

Methods​

toString​

▸ toString(): string

Converts this IOError to a string.

Returns​

string

Defined in​

uri/src/uri.ts:102