pub enum RusotoError<E> {
Service(E),
HttpDispatch(HttpDispatchError),
Credentials(CredentialsError),
Validation(String),
ParseError(String),
Unknown(BufferedHttpResponse),
Blocking,
}
Expand description
Generic error type returned by all rusoto requests.
Variants§
Service(E)
A service-specific error occurred.
HttpDispatch(HttpDispatchError)
An error occurred dispatching the HTTP request
Credentials(CredentialsError)
An error was encountered with AWS credentials.
Validation(String)
A validation error occurred. Details from AWS are provided.
ParseError(String)
An error occurred parsing the response payload.
Unknown(BufferedHttpResponse)
An unknown error occurred. The raw HTTP response is provided.
Blocking
An error occurred when attempting to run a future as blocking
Trait Implementations§
Source§impl<E: Debug> Debug for RusotoError<E>
impl<E: Debug> Debug for RusotoError<E>
Source§impl<E: Error + 'static> Display for RusotoError<E>
impl<E: Error + 'static> Display for RusotoError<E>
Source§impl<E: Error + 'static> Error for RusotoError<E>
impl<E: Error + 'static> Error for RusotoError<E>
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<E> From<CredentialsError> for RusotoError<E>
impl<E> From<CredentialsError> for RusotoError<E>
Source§fn from(err: CredentialsError) -> Self
fn from(err: CredentialsError) -> Self
Converts to this type from the input type.
Source§impl<E> From<Error> for RusotoError<E>
impl<E> From<Error> for RusotoError<E>
Source§impl<E> From<Error> for RusotoError<E>
impl<E> From<Error> for RusotoError<E>
Source§impl<E> From<HttpDispatchError> for RusotoError<E>
impl<E> From<HttpDispatchError> for RusotoError<E>
Source§fn from(err: HttpDispatchError) -> Self
fn from(err: HttpDispatchError) -> Self
Converts to this type from the input type.
Source§impl<E: PartialEq> PartialEq for RusotoError<E>
impl<E: PartialEq> PartialEq for RusotoError<E>
impl<E> StructuralPartialEq for RusotoError<E>
Auto Trait Implementations§
impl<E> !Freeze for RusotoError<E>
impl<E> RefUnwindSafe for RusotoError<E>where
E: RefUnwindSafe,
impl<E> Send for RusotoError<E>where
E: Send,
impl<E> Sync for RusotoError<E>where
E: Sync,
impl<E> Unpin for RusotoError<E>where
E: Unpin,
impl<E> UnwindSafe for RusotoError<E>where
E: UnwindSafe,
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