pub enum LambdaError {
TypeConversion(String),
Http(Error),
Hyper(Error),
LambdaHttp(Error),
SessionStorage(String),
McpFramework(String),
Json(Error),
Body(String),
Cors(String),
Sse(String),
Configuration(String),
Session(String),
}Expand description
Errors that can occur during Lambda MCP server operations
Variants§
TypeConversion(String)
Type conversion error between lambda_http and hyper types
Http(Error)
HTTP error during request processing
Hyper(Error)
Hyper error during request processing
LambdaHttp(Error)
Lambda HTTP error
SessionStorage(String)
Session storage error
McpFramework(String)
MCP framework error
Json(Error)
JSON serialization/deserialization error
Body(String)
Body processing error
Cors(String)
CORS configuration error
Sse(String)
SSE streaming error
Configuration(String)
Configuration error
Session(String)
Session management error
Trait Implementations§
Source§impl Debug for LambdaError
impl Debug for LambdaError
Source§impl Display for LambdaError
impl Display for LambdaError
Source§impl Error for LambdaError
impl Error for LambdaError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Source§impl From<Error> for LambdaError
impl From<Error> for LambdaError
Source§impl From<Error> for LambdaError
impl From<Error> for LambdaError
Source§impl From<Error> for LambdaError
impl From<Error> for LambdaError
Source§impl From<HttpMcpError> for LambdaError
impl From<HttpMcpError> for LambdaError
Source§fn from(err: HttpMcpError) -> Self
fn from(err: HttpMcpError) -> Self
Converts to this type from the input type.
Source§impl From<SessionStorageError> for LambdaError
impl From<SessionStorageError> for LambdaError
Source§fn from(err: SessionStorageError) -> Self
fn from(err: SessionStorageError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for LambdaError
impl !RefUnwindSafe for LambdaError
impl Send for LambdaError
impl Sync for LambdaError
impl Unpin for LambdaError
impl !UnwindSafe for LambdaError
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreCreates a shared type from an unshared type.