Enum ion_schema::result::IonSchemaError
source · pub enum IonSchemaError {
IoError {
source: Error,
},
UnresolvableSchemaError {
description: String,
},
InvalidSchemaError {
description: String,
},
IonError {
source: IonError,
},
}
Expand description
Represents the different types of high-level failures that might occur when reading Ion Schema.
Variants§
IoError
Indicates that an io error occurred while loading a schema
UnresolvableSchemaError
Indicates failure for schema which has unresolvable imports/types
InvalidSchemaError
Indicates failure due to invalid schema syntax
IonError
Indicates failure due to ion-rust error defined by IonError
Trait Implementations§
source§impl Debug for IonSchemaError
impl Debug for IonSchemaError
source§impl Display for IonSchemaError
impl Display for IonSchemaError
source§impl Error for IonSchemaError
impl Error for IonSchemaError
source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
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<Error> for IonSchemaError
impl From<Error> for IonSchemaError
source§impl From<IonError> for IonSchemaError
impl From<IonError> for IonSchemaError
Auto Trait Implementations§
impl !RefUnwindSafe for IonSchemaError
impl Send for IonSchemaError
impl Sync for IonSchemaError
impl Unpin for IonSchemaError
impl !UnwindSafe for IonSchemaError
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