pub enum JsonlError {
Io {
path: PathBuf,
source: Error,
},
Decode {
path: PathBuf,
line: usize,
source: Error,
},
Encode(Error),
ChainBroken(String),
Validation(String),
}Expand description
Errors raised by JsonlLog.
Variants§
Io
File-system I/O failure.
Decode
A JSON decode failed during iteration / verification.
Fields
Encode(Error)
A JSON encode failed during append.
ChainBroken(String)
Chain verification failed (one or more rows broke the chain).
Callers needing per-row diagnostics should use
crate::audit::verify_chain instead.
Validation(String)
Validation failed before append.
Trait Implementations§
Source§impl Debug for JsonlError
impl Debug for JsonlError
Source§impl Display for JsonlError
impl Display for JsonlError
Source§impl Error for JsonlError
impl Error for JsonlError
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 From<JsonlError> for AnchorVerifyError
impl From<JsonlError> for AnchorVerifyError
Source§fn from(source: JsonlError) -> Self
fn from(source: JsonlError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for JsonlError
impl !RefUnwindSafe for JsonlError
impl Send for JsonlError
impl Sync for JsonlError
impl Unpin for JsonlError
impl UnsafeUnpin for JsonlError
impl !UnwindSafe for JsonlError
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