Hierarchy
Error
↳ StatusError
#
Constructors#
constructor+ new StatusError(code
: Code, message?
: string): StatusError
#
Parameters:Name | Type |
---|---|
code | Code |
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â–¸ Static
fromMessage(msg
: TransportMessage): undefined | StatusError
#
Parameters:Name | Type |
---|---|
msg | TransportMessage |
Returns: undefined | StatusError
Defined in: transport/errors.ts:51
#
fromStatusâ–¸ Static
fromStatus(status?
: Status): undefined | StatusError
#
Parameters:Name | Type |
---|---|
status? | Status |
Returns: undefined | StatusError
Defined in: transport/errors.ts:44