pub enum ServiceError {
Db(DbError),
ResourceLimit {
limit: GraphLimitKind,
},
InvalidInput(String),
Io {
path: PathBuf,
source: Error,
},
Serialize(Error),
SelectedProjectUnavailable,
SelectedProjectChanged,
SearchCapabilityUnavailable {
requested_mode: SearchRetrievalMode,
state: &'static str,
guidance: &'static str,
},
RelationCursorInvalid {
reason: &'static str,
},
RelationCursorMismatched {
field: &'static str,
},
RelationCursorStale {
field: &'static str,
},
}Expand description
Service-layer failures.
Variants§
Db(DbError)
Database operation failed.
ResourceLimit
A bounded service request reached a typed resource limit before a report could be composed.
Fields
limit: GraphLimitKindResource limit that stopped the request.
InvalidInput(String)
User input or stored metadata was invalid.
Io
Filesystem operation failed.
Serialize(Error)
Serialization failed while building a telemetry baseline.
The selected database has no complete project binding.
SelectedProjectChanged
The selected project binding changed while the report was being read.
An explicitly requested optional search capability has no ready generation.
RelationCursorInvalid
A detailed-relation cursor is malformed or violates its bounded state invariants.
RelationCursorMismatched
A detailed-relation cursor belongs to another normalized request.
RelationCursorStale
A detailed-relation cursor belongs to stale repository or purpose state.
Trait Implementations§
Source§impl Debug for ServiceError
impl Debug for ServiceError
Source§impl Display for ServiceError
impl Display for ServiceError
Source§impl Error for ServiceError
impl Error for ServiceError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()