#[non_exhaustive]pub enum DescribeDocumentError {
InternalServerError(InternalServerError),
InvalidDocument(InvalidDocument),
InvalidDocumentVersion(InvalidDocumentVersion),
Unhandled(Unhandled),
}
Expand description
Error type for the DescribeDocumentError
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.
InvalidDocumentVersion(InvalidDocumentVersion)
The document version isn't valid or doesn't exist.
Unhandled(Unhandled)
An unexpected error occurred (e.g., invalid JSON returned by the service or an unknown error code).
Implementations§
source§impl DescribeDocumentError
impl DescribeDocumentError
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 DescribeDocumentError::Unhandled
variant from any error type.
sourcepub fn generic(err: ErrorMetadata) -> Self
pub fn generic(err: ErrorMetadata) -> Self
Creates the DescribeDocumentError::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 DescribeDocumentError::InternalServerError
.
sourcepub fn is_invalid_document(&self) -> bool
pub fn is_invalid_document(&self) -> bool
Returns true
if the error kind is DescribeDocumentError::InvalidDocument
.
sourcepub fn is_invalid_document_version(&self) -> bool
pub fn is_invalid_document_version(&self) -> bool
Returns true
if the error kind is DescribeDocumentError::InvalidDocumentVersion
.
Trait Implementations§
source§impl CreateUnhandledError for DescribeDocumentError
impl CreateUnhandledError for DescribeDocumentError
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 DescribeDocumentError
impl Debug for DescribeDocumentError
source§impl Display for DescribeDocumentError
impl Display for DescribeDocumentError
source§impl Error for DescribeDocumentError
impl Error for DescribeDocumentError
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<DescribeDocumentError> for Error
impl From<DescribeDocumentError> for Error
source§fn from(err: DescribeDocumentError) -> Self
fn from(err: DescribeDocumentError) -> Self
source§impl ProvideErrorMetadata for DescribeDocumentError
impl ProvideErrorMetadata for DescribeDocumentError
source§fn meta(&self) -> &ErrorMetadata
fn meta(&self) -> &ErrorMetadata
source§impl RequestId for DescribeDocumentError
impl RequestId for DescribeDocumentError
source§fn request_id(&self) -> Option<&str>
fn request_id(&self) -> Option<&str>
None
if the service could not be reached.