Module error

Source
Expand description

This module defines the RuntimeApiError trait that developers should implement to send their custom errors to the AWS Lambda Runtime Client SDK. The module also defines the ApiError type returned by the RuntimeClient implementations.

Structs§

ApiError
Represents an error generated by the Lambda Runtime API client.
ErrorResponse
This object is used to generate requests to the Lambda Runtime APIs. It is used for both the error response APIs and fail init calls. custom error types should implement the RuntimeError trait and return this object to be compatible with the APIs.

Enums§

ApiErrorKind
Failure context for the ApiError type. The kind is used to indicate whether the error is recoverable and should be retried or not.

Constants§

RUNTIME_ERROR_TYPE
Error type for the error responses to the Runtime APIs. In the future, this library should use a customer-generated error code