Class: RouterErrorHandler<IncomingEventType, OutgoingResponseType>
Class: RouterErrorHandler<IncomingEventType, OutgoingResponseType>
Class representing a RouterErrorHandler.
Type Parameters
IncomingEventType
IncomingEventType extends StoneIncomingEvent = StoneIncomingEvent
OutgoingResponseType
OutgoingResponseType extends IOutgoingResponse = IOutgoingResponse
Implements
IErrorHandler<IncomingEventType,OutgoingResponseType>
Constructors
Constructor
new RouterErrorHandler<IncomingEventType, OutgoingResponseType>(options): RouterErrorHandler<IncomingEventType, OutgoingResponseType>;
Create a RouterErrorHandler.
Parameters
options
RouterErrorHandler options.
Returns
RouterErrorHandler<IncomingEventType, OutgoingResponseType>
Methods
handle()
handle(error, event): Promiseable<OutgoingResponseType>;
Handle an error.
Parameters
error
Error
The error to handle.
event
The incoming http event.
Returns
Promiseable<OutgoingResponseType>
The outgoing http response.
Implementation of
IErrorHandler.handle
