ExceptionFilter

Interface describing implementation of an exception filter.


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

See also

Methods

catch()

Method to implement a custom exception filter.


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

Parameters

Option Type Description
exception T

the class of the exception being handled

host ArgumentsHost

used to access an array of arguments for the in-flight request

Returns

any