pub enum ReplicaError {
Config(String),
InvalidRow {
key: String,
reason: String,
},
InvalidRequest(String),
SchemaUnsupported {
capability: String,
schema: u32,
},
Load(String),
Store(String),
}Expand description
Why a ledger operation or a pull failed. Display starts with a stable
prefix, so the text can go straight into the capability error channel.
Variants§
Config(String)
The collection’s declaration is unusable (its name or table prefix).
InvalidRow
A row outside the contract’s limits, or a key listed twice.
InvalidRequest(String)
A pull request outside the contract.
SchemaUnsupported
The pull asked for a schema this collection does not serve.
Load(String)
The app’s load callback failed.
Store(String)
The ledger’s store failed.
Trait Implementations§
Source§impl Clone for ReplicaError
impl Clone for ReplicaError
Source§impl Debug for ReplicaError
impl Debug for ReplicaError
Source§impl Display for ReplicaError
impl Display for ReplicaError
impl Eq for ReplicaError
Source§impl Error for ReplicaError
impl Error for ReplicaError
1.30.0 · 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 PartialEq for ReplicaError
impl PartialEq for ReplicaError
impl StructuralPartialEq for ReplicaError
Auto Trait Implementations§
impl Forget for ReplicaError
impl Freeze for ReplicaError
impl Move for ReplicaError
impl RefUnwindSafe for ReplicaError
impl Send for ReplicaError
impl Sync for ReplicaError
impl Unpin for ReplicaError
impl UnsafeUnpin for ReplicaError
impl UnwindSafe for ReplicaError
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