pub enum ProblemConversionError {
UnknownProblemType(String),
InvalidContext {
category: &'static str,
source: Error,
},
}Expand description
Reasons a Problem cannot be reconstructed as a CanonicalError.
Variants§
UnknownProblemType(String)
The problem_type URI does not match any of the 16 canonical
category identifiers. Either the server emitted a non-canonical
problem or the wire format has drifted.
InvalidContext
The context payload could not be deserialized into the context
type for the matched category. The category and underlying serde
error are surfaced for diagnostics.
Trait Implementations§
Source§impl Debug for ProblemConversionError
impl Debug for ProblemConversionError
Source§impl Display for ProblemConversionError
impl Display for ProblemConversionError
Source§impl Error for ProblemConversionError
impl Error for ProblemConversionError
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 ProblemConversionError
impl !UnwindSafe for ProblemConversionError
impl Freeze for ProblemConversionError
impl Send for ProblemConversionError
impl Sync for ProblemConversionError
impl Unpin for ProblemConversionError
impl UnsafeUnpin for ProblemConversionError
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