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
E_CONN_LOSTE_CONN_READONLYE_CONN_BUSYE_INTERNAL_ERRORE_FRAME_ENDEDE_FRAME_BROKENE_MESSAGE_TOO_LARGEE_INVALID_PROTOCOLE_TIMEOUTE_INVALID_CONFIGE_HANDSHAKE_FAILED
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
readonlycontext:IErrorContext
Defined in: src/lib/Errors.ts:31
The context information for the error.
origin
readonlyorigin:unknown
Defined in: src/lib/Errors.ts:36
The origin object for the error.