Trait LambdaErrorExt

Source
pub trait LambdaErrorExt {
    // Required method
    fn error_type(&self) -> &str;
}
Expand description

The LambdaErrorExt trait defines the error_type() method used by the AWS Lambda runtime client to generate ErrorResponse objects. The value returned by the error_type() method is used to populate the errorType field in the Lambda response. This crate includes an implementation of this trait for most errors in the standard library. By default, error return their type name.

Required Methods§

Source

fn error_type(&self) -> &str

The value for this field should be an alphanumeric unique identifier of the error type. For example MyCustomError.

§Return

An alphanumeric identifier for the error

Implementations on Foreign Types§

Source§

impl LambdaErrorExt for FromBytesWithNulError

Source§

fn error_type(&self) -> &str

Source§

impl LambdaErrorExt for VarError

Source§

fn error_type(&self) -> &str

Source§

impl LambdaErrorExt for RecvTimeoutError

Source§

fn error_type(&self) -> &str

Source§

impl LambdaErrorExt for TryRecvError

Source§

fn error_type(&self) -> &str

Source§

impl LambdaErrorExt for IntoStringError

Source§

fn error_type(&self) -> &str

Source§

impl LambdaErrorExt for NulError

Source§

fn error_type(&self) -> &str

Source§

impl LambdaErrorExt for FromUtf8Error

Source§

fn error_type(&self) -> &str

Source§

impl LambdaErrorExt for FromUtf16Error

Source§

fn error_type(&self) -> &str

Source§

impl LambdaErrorExt for BorrowError

Source§

fn error_type(&self) -> &str

Source§

impl LambdaErrorExt for BorrowMutError

Source§

fn error_type(&self) -> &str

Source§

impl LambdaErrorExt for ParseCharError

Source§

fn error_type(&self) -> &str

Source§

impl LambdaErrorExt for DecodeUtf16Error

Source§

fn error_type(&self) -> &str

Source§

impl LambdaErrorExt for AddrParseError

Source§

fn error_type(&self) -> &str

Source§

impl LambdaErrorExt for ParseFloatError

Source§

fn error_type(&self) -> &str

Source§

impl LambdaErrorExt for ParseIntError

Source§

fn error_type(&self) -> &str

Source§

impl LambdaErrorExt for ParseBoolError

Source§

fn error_type(&self) -> &str

Source§

impl LambdaErrorExt for Utf8Error

Source§

fn error_type(&self) -> &str

Source§

impl LambdaErrorExt for JoinPathsError

Source§

fn error_type(&self) -> &str

Source§

impl LambdaErrorExt for StripPrefixError

Source§

fn error_type(&self) -> &str

Source§

impl LambdaErrorExt for RecvError

Source§

fn error_type(&self) -> &str

Source§

impl LambdaErrorExt for SystemTimeError

Source§

fn error_type(&self) -> &str

Source§

impl LambdaErrorExt for Compat<Error>

Source§

fn error_type(&self) -> &str

Source§

impl LambdaErrorExt for Error

Source§

fn error_type(&self) -> &str

Source§

impl LambdaErrorExt for ParseError

Source§

fn error_type(&self) -> &str

Source§

impl LambdaErrorExt for LayoutErr

Source§

fn error_type(&self) -> &str

Implementors§