#[non_exhaustive]pub enum PublishError {
    InternalFailureException(InternalFailureException),
    InvalidRequestException(InvalidRequestException),
    MethodNotAllowedException(MethodNotAllowedException),
    ThrottlingException(ThrottlingException),
    UnauthorizedException(UnauthorizedException),
    Unhandled(Unhandled),
}Expand description
Error type for the PublishError operation.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
InternalFailureException(InternalFailureException)
An unexpected error has occurred.
InvalidRequestException(InvalidRequestException)
The request is not valid.
MethodNotAllowedException(MethodNotAllowedException)
The specified combination of HTTP verb and URI is not supported.
ThrottlingException(ThrottlingException)
The rate exceeds the limit.
You are not authorized to perform this operation.
Unhandled(Unhandled)
An unexpected error occurred (e.g., invalid JSON returned by the service or an unknown error code).
Implementations§
source§impl PublishError
 
impl PublishError
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 PublishError::Unhandled variant from any error type.
sourcepub fn generic(err: ErrorMetadata) -> Self
 
pub fn generic(err: ErrorMetadata) -> Self
Creates the PublishError::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_failure_exception(&self) -> bool
 
pub fn is_internal_failure_exception(&self) -> bool
Returns true if the error kind is PublishError::InternalFailureException.
sourcepub fn is_invalid_request_exception(&self) -> bool
 
pub fn is_invalid_request_exception(&self) -> bool
Returns true if the error kind is PublishError::InvalidRequestException.
sourcepub fn is_method_not_allowed_exception(&self) -> bool
 
pub fn is_method_not_allowed_exception(&self) -> bool
Returns true if the error kind is PublishError::MethodNotAllowedException.
sourcepub fn is_throttling_exception(&self) -> bool
 
pub fn is_throttling_exception(&self) -> bool
Returns true if the error kind is PublishError::ThrottlingException.
Returns true if the error kind is PublishError::UnauthorizedException.
Trait Implementations§
source§impl CreateUnhandledError for PublishError
 
impl CreateUnhandledError for PublishError
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 PublishError
 
impl Debug for PublishError
source§impl Display for PublishError
 
impl Display for PublishError
source§impl Error for PublishError
 
impl Error for PublishError
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<PublishError> for Error
 
impl From<PublishError> for Error
source§fn from(err: PublishError) -> Self
 
fn from(err: PublishError) -> Self
source§impl ProvideErrorKind for PublishError
 
impl ProvideErrorKind for PublishError
source§impl ProvideErrorMetadata for PublishError
 
impl ProvideErrorMetadata for PublishError
source§fn meta(&self) -> &ErrorMetadata
 
fn meta(&self) -> &ErrorMetadata
source§impl RequestId for PublishError
 
impl RequestId for PublishError
source§fn request_id(&self) -> Option<&str>
 
fn request_id(&self) -> Option<&str>
None if the service could not be reached.