pub enum ApiaryError {
Show 16 variants
Storage {
message: String,
source: Option<Box<dyn Error + Send + Sync>>,
},
NotFound {
key: String,
},
WriteConflict {
key: String,
},
AlreadyExists {
entity_type: String,
name: String,
},
EntityNotFound {
entity_type: String,
name: String,
},
Schema {
message: String,
},
MemoryExceeded {
bee_id: BeeId,
budget: u64,
requested: u64,
},
TaskTimeout {
message: String,
},
TaskAbandoned {
message: String,
},
Config {
message: String,
},
Resolution {
path: String,
reason: String,
},
Unsupported {
message: String,
},
Ledger {
frame_id: FrameId,
message: String,
},
Internal {
message: String,
},
Conflict {
message: String,
},
Serialization(String),
}Expand description
The unified error type for all Apiary operations.
Variants§
Storage
A storage operation failed.
Fields
NotFound
The requested key was not found in storage.
WriteConflict
A conditional write conflict occurred (another writer committed first).
AlreadyExists
An entity with this name already exists.
Fields
EntityNotFound
The requested entity was not found in the registry.
Fields
Schema
A schema validation error occurred during a write.
MemoryExceeded
A bee exceeded its memory budget.
Fields
TaskTimeout
A task exceeded its timeout.
TaskAbandoned
A task was abandoned after exceeding the retry limit.
Config
Invalid configuration was provided.
Resolution
A frame path could not be resolved.
Fields
Unsupported
An unsupported operation was attempted.
Ledger
A ledger operation failed.
Fields
Internal
An internal error (bug).
Conflict
A conflict occurred during a DDL operation after max retries.
Serialization(String)
Serialization or deserialization error.
Implementations§
Trait Implementations§
Source§impl Debug for ApiaryError
impl Debug for ApiaryError
Source§impl Display for ApiaryError
impl Display for ApiaryError
Source§impl Error for ApiaryError
impl Error for ApiaryError
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()
Auto Trait Implementations§
impl Freeze for ApiaryError
impl !RefUnwindSafe for ApiaryError
impl Send for ApiaryError
impl Sync for ApiaryError
impl Unpin for ApiaryError
impl UnsafeUnpin for ApiaryError
impl !UnwindSafe for ApiaryError
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