import ChainedError from './../../lambda-runtime-tools/ChainedError'; import { IntegrationStepIterationState } from './step-functions'; /** * An error thrown by an integration, which is designed to capture a `cause`, * support a contextual `message`, while not losing the cause `code` and * `stack`. * * This is currently a reference to * `./../../lambda-runtime-tools/ChainedError`, with a goal of ultimately * moving it out of there so that integrations do not depend on * `lambda-runtime-tools`. */ export { ChainedError as IntegrationError }; /** * An error thrown when the integration configuration could not be loaded. */ export declare class IntegrationConfigurationLoadError extends ChainedError { constructor(cause: Error); } /** * An error thrown when the invocation validator or integration handler * functions throw an unexpected Error. */ export declare class IntegrationExecutionError extends ChainedError { constructor(cause: Error); } /** * An error thrown when the integration instance configuration credentials do * not authenticate. */ export declare class IntegrationInstanceAuthenticationError extends ChainedError { constructor(cause: Error); } /** * An error thrown when the integration instance is not authorized to access a * resource of the provider. */ export declare class IntegrationInstanceAuthorizationError extends ChainedError { constructor(cause: Error, resource: string); } /** * An error thrown when the integration instance configuration is invalid. */ export declare class IntegrationInstanceConfigError extends ChainedError { constructor(message: string); } /** * An error thrown when a step receives an unexpected iteration state. */ export declare class IntegrationStepIterationStateError extends ChainedError { constructor(iterationState: IntegrationStepIterationState); } /** * Errors which must be thrown out of the process in order that alerts are * delivered to devs on call. */ export declare function isFatalIntegrationError(err: Error): boolean;