Class: NodeHttpErrorHandler
Class: NodeHttpErrorHandler
Class representing an NodeHttpErrorHandler.
Implements
IAdapterErrorHandler<IncomingMessage,ServerResponse,NodeHttpServer>
Constructors
Constructor
new NodeHttpErrorHandler(options): NodeHttpErrorHandler;
Create an NodeHttpErrorHandler.
Parameters
options
NodeHttpErrorHandler options.
Returns
NodeHttpErrorHandler
Methods
handle()
handle(error, context): AdapterEventBuilderType<ServerResponse<IncomingMessage>>;
Handle an error.
Parameters
error
Error
The error to handle.
context
AdapterErrorContext<IncomingMessage, ServerResponse<IncomingMessage>, NodeHttpServer>
The context of the adapter.
Returns
AdapterEventBuilderType<ServerResponse<IncomingMessage>>
The raw response builder.
Implementation of
IAdapterErrorHandler.handle
