#[non_exhaustive]pub enum VidyaError {
ConceptNotFound(String),
LanguageNotAvailable {
concept: String,
language: String,
},
ContentDir(String),
ValidationFailed {
language: String,
concept: String,
message: String,
},
Parse(String),
Io(Error),
Json(Error),
}Expand description
Errors produced by vidya operations.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
ConceptNotFound(String)
Concept not found in the registry.
LanguageNotAvailable
Language not supported for the given concept.
ContentDir(String)
Content directory not found or unreadable.
ValidationFailed
Example validation failed (compilation or runtime error).
Parse(String)
Parse error reading content files.
Io(Error)
I/O error.
Json(Error)
JSON serialization/deserialization error.
Trait Implementations§
Source§impl Debug for VidyaError
impl Debug for VidyaError
Source§impl Display for VidyaError
impl Display for VidyaError
Source§impl Error for VidyaError
impl Error for VidyaError
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<Error> for VidyaError
impl From<Error> for VidyaError
Auto Trait Implementations§
impl Freeze for VidyaError
impl !RefUnwindSafe for VidyaError
impl Send for VidyaError
impl Sync for VidyaError
impl Unpin for VidyaError
impl UnsafeUnpin for VidyaError
impl !UnwindSafe for VidyaError
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