pub enum JulesError {
Http(Error),
Serialization(Error),
Api {
status: StatusCode,
message: String,
},
Url(ParseError),
InvalidResourceName(String),
}Expand description
The error type for Jules API operations.
This enum represents all possible errors that can occur when using the
JulesClient.
Variants§
Http(Error)
An HTTP request failed due to network or connection issues.
Serialization(Error)
Failed to serialize or deserialize JSON data.
Api
The API returned an error response.
This includes the HTTP status code and any error message from the API.
Fields
§
status: StatusCodeThe HTTP status code returned by the API.
Url(ParseError)
Failed to parse a URL.
InvalidResourceName(String)
An invalid resource name was provided.
Resource names must follow the format resource_type/resource_id.
Trait Implementations§
Source§impl Debug for JulesError
impl Debug for JulesError
Source§impl Display for JulesError
impl Display for JulesError
Source§impl Error for JulesError
impl Error for JulesError
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 JulesError
impl From<Error> for JulesError
Source§impl From<Error> for JulesError
impl From<Error> for JulesError
Source§impl From<ParseError> for JulesError
impl From<ParseError> for JulesError
Source§fn from(source: ParseError) -> Self
fn from(source: ParseError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for JulesError
impl !RefUnwindSafe for JulesError
impl Send for JulesError
impl Sync for JulesError
impl Unpin for JulesError
impl !UnwindSafe for JulesError
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