litellm/litellm-rust/crates/gateway/src/error.rs
devin-ai-integration[bot] f184ace25b
feat(rust): add the MCP gateway (#43470)
Co-authored-by: Yujong Lee <yujong@berri.ai>
2026-09-27 19:37:41 -07:00

13 lines
489 B
Rust

#[derive(Debug, thiserror::Error)]
pub enum Error {
#[error(transparent)]
Http(#[from] litellm_http::Error),
#[error("environment_variables values must be strings, numbers or booleans")]
Environment,
#[error("MCP host does not yet support configured setting {0}")]
McpSetting(String),
#[error(transparent)]
Mcp(#[from] litellm_gateway_mcp::ConnectError),
#[error("MCP requires a configured master key")]
Auth(#[from] litellm_gateway_auth::Error),
}