Skip to main content

OnErrorProps

@h4ad/serverless-adapter > OnErrorProps

(interface) OnErrorProps

The props of the method that handle the response when an error occurs while forwarding the request to the framework

Signature:

export interface OnErrorProps<TEvent, TResponse> 

(property) delegatedResolver

The instance of the resolver

Signature:

delegatedResolver: DelegatedResolver<TResponse>;

(property) error

The error throwed during forwarding

Signature:

error: Error;

(property) event

The event sent by the serverless

Signature:

event: TEvent;

(property) log

The instance of the logger

Signature:

log: ILogger;

(property) respondWithErrors

Indicates whether to forward the (error.stack) or not to the client

Signature:

respondWithErrors: boolean;