Skip to main content

Class: LoaderError

Defined in: projects/pieces/src/lib/errors/LoaderError.ts:12

Describes a loader error with a type for easy identification.

Extends​

Extended by​

Constructors​

Constructor​

new LoaderError(type: LoaderErrorType, message: string): LoaderError

Defined in: projects/pieces/src/lib/errors/LoaderError.ts:18

Parameters​

ParameterType
typeLoaderErrorType
messagestring

Returns​

LoaderError

Overrides​

Error.constructor

Properties​

type​

readonly type: LoaderErrorType

Defined in: projects/pieces/src/lib/errors/LoaderError.ts:16

The type of the error that was thrown.

Accessors​

name​

Get Signature​

get name(): string

Defined in: projects/pieces/src/lib/errors/LoaderError.ts:23

Returns​

string

Overrides​

Error.name