#[non_exhaustive]pub enum DescribeReleaseLabelError {
InternalServerException(InternalServerException),
InvalidRequestException(InvalidRequestException),
Unhandled(Unhandled),
}Expand description
Error type for the DescribeReleaseLabelError operation.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
InternalServerException(InternalServerException)
This exception occurs when there is an internal failure in the Amazon EMR service.
InvalidRequestException(InvalidRequestException)
This exception occurs when there is something wrong with user input.
Unhandled(Unhandled)
An unexpected error occurred (e.g., invalid JSON returned by the service or an unknown error code).
Implementations§
source§impl DescribeReleaseLabelError
impl DescribeReleaseLabelError
sourcepub fn unhandled(err: impl Into<Box<dyn Error + Send + Sync + 'static>>) -> Self
pub fn unhandled(err: impl Into<Box<dyn Error + Send + Sync + 'static>>) -> Self
Creates the DescribeReleaseLabelError::Unhandled variant from any error type.
sourcepub fn generic(err: ErrorMetadata) -> Self
pub fn generic(err: ErrorMetadata) -> Self
Creates the DescribeReleaseLabelError::Unhandled variant from a ::aws_smithy_types::error::ErrorMetadata.
sourcepub fn meta(&self) -> &ErrorMetadata
pub fn meta(&self) -> &ErrorMetadata
Returns error metadata, which includes the error code, message, request ID, and potentially additional information.
sourcepub fn is_internal_server_exception(&self) -> bool
pub fn is_internal_server_exception(&self) -> bool
Returns true if the error kind is DescribeReleaseLabelError::InternalServerException.
sourcepub fn is_invalid_request_exception(&self) -> bool
pub fn is_invalid_request_exception(&self) -> bool
Returns true if the error kind is DescribeReleaseLabelError::InvalidRequestException.
Trait Implementations§
source§impl CreateUnhandledError for DescribeReleaseLabelError
impl CreateUnhandledError for DescribeReleaseLabelError
source§fn create_unhandled_error(
source: Box<dyn Error + Send + Sync + 'static>,
meta: Option<ErrorMetadata>
) -> Self
fn create_unhandled_error( source: Box<dyn Error + Send + Sync + 'static>, meta: Option<ErrorMetadata> ) -> Self
source and error metadata.source§impl Debug for DescribeReleaseLabelError
impl Debug for DescribeReleaseLabelError
source§impl Display for DescribeReleaseLabelError
impl Display for DescribeReleaseLabelError
source§impl Error for DescribeReleaseLabelError
impl Error for DescribeReleaseLabelError
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
source§impl From<DescribeReleaseLabelError> for Error
impl From<DescribeReleaseLabelError> for Error
source§fn from(err: DescribeReleaseLabelError) -> Self
fn from(err: DescribeReleaseLabelError) -> Self
source§impl ProvideErrorMetadata for DescribeReleaseLabelError
impl ProvideErrorMetadata for DescribeReleaseLabelError
source§fn meta(&self) -> &ErrorMetadata
fn meta(&self) -> &ErrorMetadata
source§impl RequestId for DescribeReleaseLabelError
impl RequestId for DescribeReleaseLabelError
source§fn request_id(&self) -> Option<&str>
fn request_id(&self) -> Option<&str>
None if the service could not be reached.