#[non_exhaustive]pub enum PostToConnectionError {
ForbiddenException(ForbiddenException),
GoneException(GoneException),
LimitExceededException(LimitExceededException),
PayloadTooLargeException(PayloadTooLargeException),
Unhandled(Unhandled),
}Expand description
Error type for the PostToConnectionError operation.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
ForbiddenException(ForbiddenException)
The caller is not authorized to invoke this operation.
GoneException(GoneException)
The connection with the provided id no longer exists.
LimitExceededException(LimitExceededException)
The client is sending more than the allowed number of requests per unit of time or the WebSocket client side buffer is full.
PayloadTooLargeException(PayloadTooLargeException)
The data has exceeded the maximum size allowed.
Unhandled(Unhandled)
An unexpected error occurred (e.g., invalid JSON returned by the service or an unknown error code).
Implementations§
source§impl PostToConnectionError
impl PostToConnectionError
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 PostToConnectionError::Unhandled variant from any error type.
sourcepub fn generic(err: ErrorMetadata) -> Self
pub fn generic(err: ErrorMetadata) -> Self
Creates the PostToConnectionError::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_forbidden_exception(&self) -> bool
pub fn is_forbidden_exception(&self) -> bool
Returns true if the error kind is PostToConnectionError::ForbiddenException.
sourcepub fn is_gone_exception(&self) -> bool
pub fn is_gone_exception(&self) -> bool
Returns true if the error kind is PostToConnectionError::GoneException.
sourcepub fn is_limit_exceeded_exception(&self) -> bool
pub fn is_limit_exceeded_exception(&self) -> bool
Returns true if the error kind is PostToConnectionError::LimitExceededException.
sourcepub fn is_payload_too_large_exception(&self) -> bool
pub fn is_payload_too_large_exception(&self) -> bool
Returns true if the error kind is PostToConnectionError::PayloadTooLargeException.
Trait Implementations§
source§impl CreateUnhandledError for PostToConnectionError
impl CreateUnhandledError for PostToConnectionError
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 PostToConnectionError
impl Debug for PostToConnectionError
source§impl Display for PostToConnectionError
impl Display for PostToConnectionError
source§impl Error for PostToConnectionError
impl Error for PostToConnectionError
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<PostToConnectionError> for Error
impl From<PostToConnectionError> for Error
source§fn from(err: PostToConnectionError) -> Self
fn from(err: PostToConnectionError) -> Self
source§impl ProvideErrorMetadata for PostToConnectionError
impl ProvideErrorMetadata for PostToConnectionError
source§fn meta(&self) -> &ErrorMetadata
fn meta(&self) -> &ErrorMetadata
source§impl RequestId for PostToConnectionError
impl RequestId for PostToConnectionError
source§fn request_id(&self) -> Option<&str>
fn request_id(&self) -> Option<&str>
None if the service could not be reached.