pub enum VonageError {
Http(HttpError),
Auth(AuthError),
Json(Error),
Api {
status: u16,
message: String,
},
Config(String),
}
Expand description
Main error type for the Vonage SDK
Variants§
Http(HttpError)
HTTP request failed
Auth(AuthError)
Authentication failed
Json(Error)
JSON serialization/deserialization failed
Api
API returned an error response
Config(String)
Configuration error
Trait Implementations§
Source§impl Debug for VonageError
impl Debug for VonageError
Source§impl Display for VonageError
impl Display for VonageError
Source§impl Error for VonageError
impl Error for VonageError
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<AuthError> for VonageError
impl From<AuthError> for VonageError
Source§impl From<Error> for VonageError
impl From<Error> for VonageError
Auto Trait Implementations§
impl Freeze for VonageError
impl !RefUnwindSafe for VonageError
impl Send for VonageError
impl Sync for VonageError
impl Unpin for VonageError
impl !UnwindSafe for VonageError
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