Class: HttpErrorHandler
Class: HttpErrorHandler
Class representing an HttpErrorHandler.
Implements
IErrorHandler
<IncomingHttpEvent
,OutgoingHttpResponse
>
Constructors
Constructor
new HttpErrorHandler(options): HttpErrorHandler;
Create an HttpErrorHandler.
Parameters
options
HttpErrorHandler options.
Returns
HttpErrorHandler
Methods
handle()
handle(error, event): OutgoingHttpResponse;
Handle an error.
Parameters
error
Error
The error to handle.
event
The incoming http event.
Returns
The outgoing http response.
Implementation of
IErrorHandler.handle