ask-sdk-runtime
Version:
Base runtime package for Alexa Skills Kit SDK
8 lines (7 loc) • 317 B
TypeScript
import { ErrorHandler } from '../handler/ErrorHandler';
/**
* An interface providing a mapping of handler input and error to {@link ErrorHandler}.
*/
export interface ErrorMapper<Input, Output> {
getErrorHandler(input: Input, error: Error): Promise<ErrorHandler<Input, Output>> | ErrorHandler<Input, Output>;
}