pub enum AdapterError {
MissingField {
index: usize,
field: String,
},
InvalidField {
index: usize,
field: String,
reason: String,
},
Parse(String),
UnknownKind {
index: usize,
kind: String,
},
UnknownRelation {
index: usize,
relation: String,
},
NotYetImplemented {
format: String,
},
}Expand description
An error produced by a format adapter.
Fatal errors (missing required fields, structural failures) are non-recoverable: the adapter aborts and the caller must handle the error atomically. Non-fatal issues (unknown but non-required fields) are warnings reported in the import summary.
Variants§
MissingField
A required field is missing from a record.
InvalidField
A field has an unexpected type or value.
Parse(String)
The source file cannot be parsed (structural failure).
UnknownKind
An entity kind is unknown under strict schema mode.
UnknownRelation
An edge relation is not in the closed set of 15 canonical relations.
This is always an error regardless of --schema-mode.
NotYetImplemented
A deferred format was requested.
Trait Implementations§
Source§impl Debug for AdapterError
impl Debug for AdapterError
Source§impl Display for AdapterError
impl Display for AdapterError
Source§impl Error for AdapterError
impl Error for AdapterError
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()
Auto Trait Implementations§
impl Freeze for AdapterError
impl RefUnwindSafe for AdapterError
impl Send for AdapterError
impl Sync for AdapterError
impl Unpin for AdapterError
impl UnsafeUnpin for AdapterError
impl UnwindSafe for AdapterError
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