pub enum NxsError {
Show 22 variants
BadMagic,
UnknownSigil(char),
BadEscape(char),
OutOfBounds,
DictMismatch,
CircularLink,
RecursionLimit,
MacroUnresolved(String),
ListTypeMismatch,
Overflow,
ParseError(String),
IoError(String),
ConvertSchemaConflict(String),
ConvertParseError {
offset: u64,
msg: String,
},
ConvertEntityExpansion,
ConvertDepthExceeded,
InvalidFlags,
IncompatibleFlags,
UnsupportedLayout,
UnsupportedFieldType,
InvalidPageMagic,
PageCrcMismatch,
}Variants§
BadMagic
UnknownSigil(char)
BadEscape(char)
OutOfBounds
DictMismatch
CircularLink
RecursionLimit
MacroUnresolved(String)
ListTypeMismatch
Overflow
ParseError(String)
IoError(String)
ConvertSchemaConflict(String)
Exit 4 — two records disagree on a key’s sigil and policy is error.
ConvertParseError
Exit 3 — malformed JSON/CSV/XML; byte offset is the position in the stream.
ConvertEntityExpansion
Exit 3 — XML entity-expansion attack detected (billion-laughs etc.).
ConvertDepthExceeded
Exit 3 — nesting depth exceeded --max-depth / --xml-max-depth.
InvalidFlags
Both FLAG_COLUMNAR and FLAG_PAX set (OLAP §7.1).
IncompatibleFlags
Incompatible flag combination (e.g. columnar + streaming TailPtr=0).
UnsupportedLayout
Reader does not implement the requested layout.
UnsupportedFieldType
String/binary/keyword in columnar/PAX initial release (OLAP §Q3).
InvalidPageMagic
PAX page magic not NXSP.
PageCrcMismatch
Optional per-page CRC mismatch.
Trait Implementations§
Source§impl Error for NxsError
impl Error for NxsError
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()
impl StructuralPartialEq for NxsError
Auto Trait Implementations§
impl Freeze for NxsError
impl RefUnwindSafe for NxsError
impl Send for NxsError
impl Sync for NxsError
impl Unpin for NxsError
impl UnsafeUnpin for NxsError
impl UnwindSafe for NxsError
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