#[non_exhaustive]pub enum GetSessionError {
BadRequestException(BadRequestException),
InternalFailureException(InternalFailureException),
LimitExceededException(LimitExceededException),
NotFoundException(NotFoundException),
Unhandled(Unhandled),
}
Expand description
Error type for the GetSessionError
operation.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
BadRequestException(BadRequestException)
Request validation failed, there is no usable message in the context, or the bot build failed, is still in progress, or contains unbuilt changes.
InternalFailureException(InternalFailureException)
Internal service error. Retry the call.
LimitExceededException(LimitExceededException)
Exceeded a limit.
NotFoundException(NotFoundException)
The resource (such as the Amazon Lex bot or an alias) that is referred to is not found.
Unhandled(Unhandled)
An unexpected error occurred (e.g., invalid JSON returned by the service or an unknown error code).
Implementations§
source§impl GetSessionError
impl GetSessionError
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 GetSessionError::Unhandled
variant from any error type.
sourcepub fn generic(err: ErrorMetadata) -> Self
pub fn generic(err: ErrorMetadata) -> Self
Creates the GetSessionError::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_bad_request_exception(&self) -> bool
pub fn is_bad_request_exception(&self) -> bool
Returns true
if the error kind is GetSessionError::BadRequestException
.
sourcepub fn is_internal_failure_exception(&self) -> bool
pub fn is_internal_failure_exception(&self) -> bool
Returns true
if the error kind is GetSessionError::InternalFailureException
.
sourcepub fn is_limit_exceeded_exception(&self) -> bool
pub fn is_limit_exceeded_exception(&self) -> bool
Returns true
if the error kind is GetSessionError::LimitExceededException
.
sourcepub fn is_not_found_exception(&self) -> bool
pub fn is_not_found_exception(&self) -> bool
Returns true
if the error kind is GetSessionError::NotFoundException
.
Trait Implementations§
source§impl CreateUnhandledError for GetSessionError
impl CreateUnhandledError for GetSessionError
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 GetSessionError
impl Debug for GetSessionError
source§impl Display for GetSessionError
impl Display for GetSessionError
source§impl Error for GetSessionError
impl Error for GetSessionError
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<GetSessionError> for Error
impl From<GetSessionError> for Error
source§fn from(err: GetSessionError) -> Self
fn from(err: GetSessionError) -> Self
source§impl ProvideErrorKind for GetSessionError
impl ProvideErrorKind for GetSessionError
source§impl ProvideErrorMetadata for GetSessionError
impl ProvideErrorMetadata for GetSessionError
source§fn meta(&self) -> &ErrorMetadata
fn meta(&self) -> &ErrorMetadata
source§impl RequestId for GetSessionError
impl RequestId for GetSessionError
source§fn request_id(&self) -> Option<&str>
fn request_id(&self) -> Option<&str>
None
if the service could not be reached.