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#
â–¸ StaticfromMessage(msg: TransportMessage): undefined | StatusError
Parameters:#
| Name | Type |
|---|---|
msg | TransportMessage |
Returns: undefined | StatusError
Defined in: transport/errors.ts:51
fromStatus#
â–¸ StaticfromStatus(status?: Status): undefined | StatusError
Parameters:#
| Name | Type |
|---|---|
status? | Status |
Returns: undefined | StatusError
Defined in: transport/errors.ts:44