pub enum LiteralError<E> {
Storage(E),
Metadata(ModelError),
Utf8 {
byte_offset: u64,
},
Lexical {
fragment_offset: u64,
error: Rdf12LexicalError,
},
ByteLimit,
ReadContract,
LengthOverflow,
Cancelled,
}Expand description
Failed literal inspection; backend failures remain distinct from semantics.
Variants§
Storage(E)
Payload access failed.
Metadata(ModelError)
Standard datatype/facet pairing is invalid or an extension is unsupported.
Utf8
Malformed UTF-8 or an incomplete scalar at EOF, at a global byte offset.
Lexical
Shared recognized-datatype lexical violation, without changing its witness.
Fields
§
error: Rdf12LexicalErrorShared semantics’ invalid character and fragment-relative byte offset.
ByteLimit
The literal exceeded its explicit lexical byte budget.
ReadContract
A reader reported more bytes than the supplied buffer could hold.
LengthOverflow
Lexical byte accounting exceeded the supported u64 range.
Cancelled
Caller cancelled or superseded the enclosing attempt.
Trait Implementations§
Source§impl<E: Debug> Debug for LiteralError<E>
impl<E: Debug> Debug for LiteralError<E>
Source§impl<E: Display> Display for LiteralError<E>
impl<E: Display> Display for LiteralError<E>
Source§impl<E: Error + 'static> Error for LiteralError<E>
impl<E: Error + 'static> Error for LiteralError<E>
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<E> Forget for LiteralError<E>
impl<E> Freeze for LiteralError<E>where
E: Freeze,
impl<E> Move for LiteralError<E>
impl<E> RefUnwindSafe for LiteralError<E>where
E: RefUnwindSafe,
impl<E> Send for LiteralError<E>where
E: Send,
impl<E> Sync for LiteralError<E>where
E: Sync,
impl<E> Unpin for LiteralError<E>where
E: Unpin,
impl<E> UnsafeUnpin for LiteralError<E>where
E: UnsafeUnpin,
impl<E> UnwindSafe for LiteralError<E>where
E: UnwindSafe,
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