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

Represents an error generated by the Lambda Runtime API client.
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.

Constants

Error type description for the ErrorResponse event. This type should be returned for errors that were handled by the function code or framework.
Error type description for the ErrorResponse event. This type is used for unhandled, unexpcted errors.

Traits

Custom errors for the framework should implement this trait. The client calls the to_response() method automatically to produce an object that can be serialized and sent to the Lambda Runtime APIs.