Enum fireblocks_sdk::error::FireblocksError
source · pub enum FireblocksError {
JwtError(JwtError),
SerdeJson {
request_id: String,
err: Error,
text: String,
},
ReqwestError(Error),
UrlError(ParseError),
InternalError {
request_id: String,
code: u16,
text: String,
},
NotFound {
request_id: String,
path: String,
},
BadRequest {
request_id: String,
path: String,
text: String,
},
Unauthorized {
request_id: String,
path: String,
text: String,
},
Unknown {
request_id: String,
code: u16,
text: String,
},
InvalidRequest {
request_id: String,
code: u16,
text: String,
},
}
Variants§
JwtError(JwtError)
Thrown when JWT signing fails
SerdeJson
Serde JSON Error
ReqwestError(Error)
Thrown when submitting a POST/GET request fails
UrlError(ParseError)
InternalError
NotFound
BadRequest
Fields
Unknown
InvalidRequest
Trait Implementations§
source§impl Debug for FireblocksError
impl Debug for FireblocksError
source§impl Display for FireblocksError
impl Display for FireblocksError
source§impl Error for FireblocksError
impl Error for FireblocksError
source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
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 FireblocksError
impl From<Error> for FireblocksError
source§impl From<ParseError> for FireblocksError
impl From<ParseError> for FireblocksError
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 FireblocksError
impl !RefUnwindSafe for FireblocksError
impl Send for FireblocksError
impl Sync for FireblocksError
impl Unpin for FireblocksError
impl !UnwindSafe for FireblocksError
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