WsExceptionFilter

Interface describing implementation of a Web Sockets exception filter.


interface WsExceptionFilter<T = any> {
  catch(exception: T, host: ArgumentsHost): any
}

See also

Methods

catch()

Method to implement a custom (web sockets) exception filter.


catch(exception: T, host: ArgumentsHost): any

Parameters

Option Type Description
exception T

the type (class) of the exception being handled

host ArgumentsHost

used to access an array of arguments for the in-flight message catch(exception: T, host: ArgumentsHost): any;

Returns

any