Enum aws_sdk_elasticinference::Error
source · #[non_exhaustive]
pub enum Error {
BadRequestException(BadRequestException),
InternalServerException(InternalServerException),
ResourceNotFoundException(ResourceNotFoundException),
Unhandled(Unhandled),
}
Expand description
All possible error types for this service.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
BadRequestException(BadRequestException)
Raised when a malformed input has been provided to the API.
InternalServerException(InternalServerException)
Raised when an unexpected error occurred during request processing.
ResourceNotFoundException(ResourceNotFoundException)
Raised when the requested resource cannot be found.
Unhandled(Unhandled)
An unexpected error occurred (e.g., invalid JSON returned by the service or an unknown error code).
When logging an error from the SDK, it is recommended that you either wrap the error in
DisplayErrorContext
, use another
error reporter library that visits the error’s cause/source chain, or call
Error::source
for more details about the underlying cause.
Trait Implementations§
source§impl Error for Error
impl Error for Error
1.30.0 · 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<DescribeAcceleratorOfferingsError> for Error
impl From<DescribeAcceleratorOfferingsError> for Error
source§fn from(err: DescribeAcceleratorOfferingsError) -> Self
fn from(err: DescribeAcceleratorOfferingsError) -> Self
Converts to this type from the input type.
source§impl From<DescribeAcceleratorTypesError> for Error
impl From<DescribeAcceleratorTypesError> for Error
source§fn from(err: DescribeAcceleratorTypesError) -> Self
fn from(err: DescribeAcceleratorTypesError) -> Self
Converts to this type from the input type.
source§impl From<DescribeAcceleratorsError> for Error
impl From<DescribeAcceleratorsError> for Error
source§fn from(err: DescribeAcceleratorsError) -> Self
fn from(err: DescribeAcceleratorsError) -> Self
Converts to this type from the input type.
source§impl From<ListTagsForResourceError> for Error
impl From<ListTagsForResourceError> for Error
source§fn from(err: ListTagsForResourceError) -> Self
fn from(err: ListTagsForResourceError) -> Self
Converts to this type from the input type.
source§impl<R> From<SdkError<DescribeAcceleratorOfferingsError, R>> for Errorwhere
R: Send + Sync + Debug + 'static,
impl<R> From<SdkError<DescribeAcceleratorOfferingsError, R>> for Errorwhere
R: Send + Sync + Debug + 'static,
source§fn from(err: SdkError<DescribeAcceleratorOfferingsError, R>) -> Self
fn from(err: SdkError<DescribeAcceleratorOfferingsError, R>) -> Self
Converts to this type from the input type.
source§impl<R> From<SdkError<DescribeAcceleratorTypesError, R>> for Errorwhere
R: Send + Sync + Debug + 'static,
impl<R> From<SdkError<DescribeAcceleratorTypesError, R>> for Errorwhere
R: Send + Sync + Debug + 'static,
source§fn from(err: SdkError<DescribeAcceleratorTypesError, R>) -> Self
fn from(err: SdkError<DescribeAcceleratorTypesError, R>) -> Self
Converts to this type from the input type.
source§impl<R> From<SdkError<DescribeAcceleratorsError, R>> for Errorwhere
R: Send + Sync + Debug + 'static,
impl<R> From<SdkError<DescribeAcceleratorsError, R>> for Errorwhere
R: Send + Sync + Debug + 'static,
source§fn from(err: SdkError<DescribeAcceleratorsError, R>) -> Self
fn from(err: SdkError<DescribeAcceleratorsError, R>) -> Self
Converts to this type from the input type.
source§impl<R> From<SdkError<ListTagsForResourceError, R>> for Errorwhere
R: Send + Sync + Debug + 'static,
impl<R> From<SdkError<ListTagsForResourceError, R>> for Errorwhere
R: Send + Sync + Debug + 'static,
source§fn from(err: SdkError<ListTagsForResourceError, R>) -> Self
fn from(err: SdkError<ListTagsForResourceError, R>) -> Self
Converts to this type from the input type.
source§impl<R> From<SdkError<TagResourceError, R>> for Errorwhere
R: Send + Sync + Debug + 'static,
impl<R> From<SdkError<TagResourceError, R>> for Errorwhere
R: Send + Sync + Debug + 'static,
source§fn from(err: SdkError<TagResourceError, R>) -> Self
fn from(err: SdkError<TagResourceError, R>) -> Self
Converts to this type from the input type.
source§impl<R> From<SdkError<UntagResourceError, R>> for Errorwhere
R: Send + Sync + Debug + 'static,
impl<R> From<SdkError<UntagResourceError, R>> for Errorwhere
R: Send + Sync + Debug + 'static,
source§fn from(err: SdkError<UntagResourceError, R>) -> Self
fn from(err: SdkError<UntagResourceError, R>) -> Self
Converts to this type from the input type.
source§impl From<TagResourceError> for Error
impl From<TagResourceError> for Error
source§fn from(err: TagResourceError) -> Self
fn from(err: TagResourceError) -> Self
Converts to this type from the input type.
source§impl From<UntagResourceError> for Error
impl From<UntagResourceError> for Error
source§fn from(err: UntagResourceError) -> Self
fn from(err: UntagResourceError) -> Self
Converts to this type from the input type.