Class: HttpExceptionFilter
Defined in: packages/microservice/job-broker/src/http-exception.filter.ts:9
Global HTTP exception filter that formats error responses consistently.
Implements
ExceptionFilter
Constructors
Constructor
new HttpExceptionFilter():
HttpExceptionFilter
Returns
HttpExceptionFilter
Methods
catch()
catch(
exception,host):void
Defined in: packages/microservice/job-broker/src/http-exception.filter.ts:19
Handles a caught HttpException and customizes the response sent to the client.
Extracts necessary information from the exception and the request context to construct a detailed and structured error response.
Parameters
exception
HttpException
The caught HttpException instance.
host
ArgumentsHost
The arguments host that provides access to the request and response objects.
Returns
void
Implementation of
ExceptionFilter.catch
