Skip to content

Documents for @litert/websocket / Errors / WsError

Abstract Class: WsError ​

Defined in: src/lib/Errors.ts:26

The error class for websocket.

Extends ​

  • Error

Extended by ​

Constructors ​

Constructor ​

new WsError(name, message, context, origin): WsError

Defined in: src/lib/Errors.ts:38

Parameters ​

name ​

string

message ​

string

context ​

IErrorContext

origin ​

unknown

Returns ​

WsError

Overrides ​

Error.constructor

Properties ​

context ​

readonly context: IErrorContext

Defined in: src/lib/Errors.ts:31

The context information for the error.


origin ​

readonly origin: unknown

Defined in: src/lib/Errors.ts:36

The origin object for the error.