#[non_exhaustive]pub enum GetCalendarStateError {
InternalServerError(InternalServerError),
InvalidDocument(InvalidDocument),
InvalidDocumentType(InvalidDocumentType),
UnsupportedCalendarException(UnsupportedCalendarException),
Unhandled(Unhandled),
}
Expand description
Error type for the GetCalendarStateError
operation.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
InternalServerError(InternalServerError)
An error occurred on the server side.
InvalidDocument(InvalidDocument)
The specified SSM document doesn't exist.
InvalidDocumentType(InvalidDocumentType)
The SSM document type isn't valid. Valid document types are described in the DocumentType
property.
UnsupportedCalendarException(UnsupportedCalendarException)
The calendar entry contained in the specified SSM document isn't supported.
Unhandled(Unhandled)
An unexpected error occurred (e.g., invalid JSON returned by the service or an unknown error code).
Implementations§
source§impl GetCalendarStateError
impl GetCalendarStateError
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 GetCalendarStateError::Unhandled
variant from any error type.
sourcepub fn generic(err: ErrorMetadata) -> Self
pub fn generic(err: ErrorMetadata) -> Self
Creates the GetCalendarStateError::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_error(&self) -> bool
pub fn is_internal_server_error(&self) -> bool
Returns true
if the error kind is GetCalendarStateError::InternalServerError
.
sourcepub fn is_invalid_document(&self) -> bool
pub fn is_invalid_document(&self) -> bool
Returns true
if the error kind is GetCalendarStateError::InvalidDocument
.
sourcepub fn is_invalid_document_type(&self) -> bool
pub fn is_invalid_document_type(&self) -> bool
Returns true
if the error kind is GetCalendarStateError::InvalidDocumentType
.
sourcepub fn is_unsupported_calendar_exception(&self) -> bool
pub fn is_unsupported_calendar_exception(&self) -> bool
Returns true
if the error kind is GetCalendarStateError::UnsupportedCalendarException
.
Trait Implementations§
source§impl CreateUnhandledError for GetCalendarStateError
impl CreateUnhandledError for GetCalendarStateError
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 GetCalendarStateError
impl Debug for GetCalendarStateError
source§impl Display for GetCalendarStateError
impl Display for GetCalendarStateError
source§impl Error for GetCalendarStateError
impl Error for GetCalendarStateError
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<GetCalendarStateError> for Error
impl From<GetCalendarStateError> for Error
source§fn from(err: GetCalendarStateError) -> Self
fn from(err: GetCalendarStateError) -> Self
source§impl ProvideErrorMetadata for GetCalendarStateError
impl ProvideErrorMetadata for GetCalendarStateError
source§fn meta(&self) -> &ErrorMetadata
fn meta(&self) -> &ErrorMetadata
source§impl RequestId for GetCalendarStateError
impl RequestId for GetCalendarStateError
source§fn request_id(&self) -> Option<&str>
fn request_id(&self) -> Option<&str>
None
if the service could not be reached.