@aws-lambda-powertools/parameters
Version:
The parameters package for the Powertools for AWS Lambda (TypeScript) library
24 lines • 875 B
TypeScript
/**
* Error thrown when a parameter cannot be retrieved.
*
* You can use this error to catch and handle errors when getting a parameter, the `cause` property will contain the original error.
*/
declare class GetParameterError extends Error {
constructor(message?: string, options?: ErrorOptions);
}
/**
* Error thrown when a parameter cannot be set.
*
* You can use this error to catch and handle errors when setting a parameter, the `cause` property will contain the original error.
*/
declare class SetParameterError extends Error {
constructor(message?: string, options?: ErrorOptions);
}
/**
* Error thrown when a transform fails.
*/
declare class TransformParameterError extends Error {
constructor(transform: string, message: string);
}
export { GetParameterError, TransformParameterError, SetParameterError };
//# sourceMappingURL=errors.d.ts.map