lambda_forge/error.rs
1use std::fmt;
2
3#[derive(Debug)]
4pub enum Error {
5 MissingLambdaContext,
6}
7
8impl fmt::Display for Error {
9 fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
10 match self {
11 Error::MissingLambdaContext => {
12 write!(f, "`EndpointMetadata` is missing the AWS Lambda Context")
13 }
14 }
15 }
16}