Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface ErrorHandler<Input, Output>

An interface for user created handler logic to add to ErrorMapper.

Type parameters

  • Input

  • Output

Hierarchy

  • ErrorHandler

Index

Methods

Methods

canHandle

  • canHandle(handlerInput: Input, error: Error): Promise<boolean> | boolean

handle

  • handle(handlerInput: Input, error: Error): Promise<Output> | Output