Appearance
@sylis/api / filter/http-exception/http-exception.filter / HttpExceptionFilter
Class: HttpExceptionFilter
Defined in: apps/api/src/filter/http-exception/http-exception.filter.ts:6
Implements
ExceptionFilter
Constructors
Constructor
new HttpExceptionFilter(
logger
):HttpExceptionFilter
Defined in: apps/api/src/filter/http-exception/http-exception.filter.ts:7
Parameters
logger
Returns
HttpExceptionFilter
Methods
catch()
catch(
exception
,host
):void
Defined in: apps/api/src/filter/http-exception/http-exception.filter.ts:9
Method to implement a custom exception filter.
Parameters
exception
HttpException
the class of the exception being handled
host
ArgumentsHost
used to access an array of arguments for the in-flight request
Returns
void
Implementation of
ExceptionFilter.catch