pub enum ProviderApiError {
BuildRequestError {
name: String,
source: Error,
},
ExecutorError {
name: String,
source: Box<ProviderApiError>,
},
ResponseError {
name: String,
source: Error,
},
JsonPathError {
name: String,
path: String,
source: JsonPathError,
},
JsonPathNotFound {
name: String,
path: String,
},
ApiFailed {
name: String,
source: Box<ApiFailed>,
},
UrlError(ParseError),
InnerError(Arc<ProviderApiError>),
Other(String),
}Variants§
BuildRequestError
ExecutorError
ResponseError
JsonPathError
JsonPathNotFound
ApiFailed
UrlError(ParseError)
InnerError(Arc<ProviderApiError>)
Other(String)
Trait Implementations§
Source§impl Debug for ProviderApiError
impl Debug for ProviderApiError
Source§impl Display for ProviderApiError
impl Display for ProviderApiError
Source§impl Error for ProviderApiError
impl Error for ProviderApiError
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<Arc<ProviderApiError>> for ProviderApiError
impl From<Arc<ProviderApiError>> for ProviderApiError
Source§fn from(source: Arc<ProviderApiError>) -> Self
fn from(source: Arc<ProviderApiError>) -> Self
Converts to this type from the input type.
Source§impl From<ParseError> for ProviderApiError
impl From<ParseError> for ProviderApiError
Source§fn from(source: ParseError) -> Self
fn from(source: ParseError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for ProviderApiError
impl !UnwindSafe for ProviderApiError
impl Freeze for ProviderApiError
impl Send for ProviderApiError
impl Sync for ProviderApiError
impl Unpin for ProviderApiError
impl UnsafeUnpin for ProviderApiError
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