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