Rust librariesmars-server
mars-server · error
Public declarations and documentation for mars-server::error.
Package: mars-server · Workspace version: 0.1.0 · Module: error
This reference follows declared modules and public syntax, including public implementation methods. Function bodies and constant values are omitted. Feature conditions are retained. Private-module re-exports and trait resolution require the compiler; not every declaration is a root import.
pub use mars_protocol::api::ErrorResponse;
pub use mars_protocol::api::ErrorResponse;Source line: 5.
error::ServerError
Unified error type for MARS server operations.
#[derive(Debug, thiserror::Error)]
pub enum ServerError {
/// An error originating from the MARS protocol layer.
#[error(transparent)]
Protocol(#[from] MarsError),
/// A storage backend error.
#[error("store error: {0}")]
Store(String),
/// A request-level validation error.
#[error("validation failed: {0}")]
Validation(String),
/// Client has exceeded the configured rate limit.
#[error("rate limited")]
RateLimited,
/// Request body exceeded the route's explicit admission bound.
#[error("request body too large")]
PayloadTooLarge,
/// A federation or inter-registry communication error.
#[error("federation error: {0}")]
Federation(String),
/// An unexpected internal server error.
#[error("internal error: {0}")]
Internal(String),
}Source line: 10.
Source provenance
Source: mars-server/src/error.rs · SHA-256 badb879bf4d9bfbd35f9c8a15f3ccada675cd828823a8d8feeae868053701cba. Package overview.