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