pub enum CirrusError {
MissingField(&'static str),
HttpClient(Error),
Http(Error),
Api {
status: u16,
errors: Vec<SalesforceError>,
raw: Option<String>,
},
OAuth {
error: String,
error_description: Option<String>,
},
Auth(String),
Serialization(Error),
Url(ParseError),
InvalidHeader(String),
InvalidResponse(String),
}Expand description
Errors produced by the Cirrus client.
Variants§
MissingField(&'static str)
A required builder field was not set.
HttpClient(Error)
Failed to construct the underlying HTTP client.
Http(Error)
Network or transport-level HTTP failure.
Api
Salesforce returned a non-2xx response. errors holds the parsed
Salesforce error array; if the body could not be parsed as the
canonical shape, the raw body is in raw.
Fields
errors: Vec<SalesforceError>Parsed Salesforce error entries. Empty if the body was not parseable as the canonical error array.
OAuth
OAuth token endpoint returned an error response (error /
error_description shape).
Auth(String)
An auth implementation failed to produce a token (network, expired credentials, signing failure, etc.). Carries the underlying message.
Serialization(Error)
JSON serialization or deserialization failure.
Url(ParseError)
URL parsing failure (instance URL, redirect URI, etc.).
InvalidHeader(String)
Header value rejected by reqwest (invalid bytes, etc.).
InvalidResponse(String)
Response could not be interpreted as the requested type or shape.
Trait Implementations§
Source§impl Debug for CirrusError
impl Debug for CirrusError
Source§impl Display for CirrusError
impl Display for CirrusError
Source§impl Error for CirrusError
impl Error for CirrusError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()