pub enum WelError {
InvalidPointer(String),
PathNotFound(String),
TypeMismatch {
path: String,
expected: String,
actual: String,
},
InvalidRegex(Error),
TransformFailed {
path: String,
message: String,
},
UnknownPredicate(String),
RecursionLimit(String),
Json(Error),
}Expand description
Errors that can occur during wellformed operations.
Variants§
InvalidPointer(String)
Invalid JSON Pointer syntax.
PathNotFound(String)
Path resolution failed.
TypeMismatch
Type mismatch during validation or transform.
InvalidRegex(Error)
Invalid regex pattern.
TransformFailed
Transform failed.
UnknownPredicate(String)
Unknown named predicate.
RecursionLimit(String)
Maximum validation recursion depth exceeded (cyclic or pathologically nested schema/data). Returned instead of overflowing the stack.
Json(Error)
JSON serialization/deserialization error.
Trait Implementations§
Source§impl Error for WelError
impl Error for WelError
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 !RefUnwindSafe for WelError
impl !UnwindSafe for WelError
impl Freeze for WelError
impl Send for WelError
impl Sync for WelError
impl Unpin for WelError
impl UnsafeUnpin for WelError
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