pub enum ModelError {
Json(String),
UnsupportedSchema {
found: u32,
supported: u32,
},
InvalidComment(String),
InvalidRange(String),
}Expand description
Errors surfaced by any model operation. Typed so callers branch on
variants; the WASM ABI ships them as { "Error": { "message": ... } }.
Variants§
Json(String)
Input was not valid JSON for the expected shape.
UnsupportedSchema
Document is from a newer schema than this build understands.
Fields
InvalidComment(String)
A comment failed validation.
InvalidRange(String)
A commit-range request did not match the snapshot store (bad boundary indices, or a boundary referencing a blob the store does not carry).
Trait Implementations§
Source§impl Debug for ModelError
impl Debug for ModelError
Source§impl Display for ModelError
impl Display for ModelError
impl Eq for ModelError
Source§impl Error for ModelError
impl Error for ModelError
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 ModelError
impl PartialEq for ModelError
impl StructuralPartialEq for ModelError
Auto Trait Implementations§
impl Freeze for ModelError
impl RefUnwindSafe for ModelError
impl Send for ModelError
impl Sync for ModelError
impl Unpin for ModelError
impl UnsafeUnpin for ModelError
impl UnwindSafe for ModelError
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