Skip to main content

Hierarchy

  • Error

    ↳ StatusError

Constructors#

constructor#

+ new StatusError(code: Code, message?: string): StatusError

Parameters:#

NameType
codeCode
message?string

Returns: StatusError

Overrides: Error.constructor

Defined in: transport/errors.ts:29

Properties#

code#

• Readonly code: Code

Methods#

toString#

â–¸ toString(): string

Returns: string

Defined in: transport/errors.ts:36


fromMessage#

â–¸ StaticfromMessage(msg: TransportMessage): undefined | StatusError

Parameters:#

NameType
msgTransportMessage

Returns: undefined | StatusError

Defined in: transport/errors.ts:51


fromStatus#

â–¸ StaticfromStatus(status?: Status): undefined | StatusError

Parameters:#

NameType
status?Status

Returns: undefined | StatusError

Defined in: transport/errors.ts:44