#[non_exhaustive]
pub enum Error {
ConflictException(ConflictException),
LimitExceededException(LimitExceededException),
ResourceNotFoundException(ResourceNotFoundException),
ResourceUnavailableException(ResourceUnavailableException),
UnsupportedOperationException(UnsupportedOperationException),
Unhandled(Unhandled),
}
Expand description
All possible error types for this service.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
ConflictException(ConflictException)
Two conflicting operations have been made on the same resource.
LimitExceededException(LimitExceededException)
Exceeded the maximum limit for connections.
ResourceNotFoundException(ResourceNotFoundException)
Resource not found. Verify the connection resource ARN and try again.
Resource not found. Verify the ARN for the host resource and try again.
UnsupportedOperationException(UnsupportedOperationException)
The operation is not supported. Check the connection status and try again.
Unhandled(Unhandled)
An unexpected error occurred (e.g., invalid JSON returned by the service or an unknown error code).
When logging an error from the SDK, it is recommended that you either wrap the error in
DisplayErrorContext
, use another
error reporter library that visits the error’s cause/source chain, or call
Error::source
for more details about the underlying cause.
Trait Implementations§
source§impl Error for Error
impl Error for Error
1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
1.0.0 · source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
source§impl From<CreateConnectionError> for Error
impl From<CreateConnectionError> for Error
source§fn from(err: CreateConnectionError) -> Self
fn from(err: CreateConnectionError) -> Self
Converts to this type from the input type.
source§impl From<CreateHostError> for Error
impl From<CreateHostError> for Error
source§fn from(err: CreateHostError) -> Self
fn from(err: CreateHostError) -> Self
Converts to this type from the input type.
source§impl From<DeleteConnectionError> for Error
impl From<DeleteConnectionError> for Error
source§fn from(err: DeleteConnectionError) -> Self
fn from(err: DeleteConnectionError) -> Self
Converts to this type from the input type.
source§impl From<DeleteHostError> for Error
impl From<DeleteHostError> for Error
source§fn from(err: DeleteHostError) -> Self
fn from(err: DeleteHostError) -> Self
Converts to this type from the input type.
source§impl From<GetConnectionError> for Error
impl From<GetConnectionError> for Error
source§fn from(err: GetConnectionError) -> Self
fn from(err: GetConnectionError) -> Self
Converts to this type from the input type.
source§impl From<GetHostError> for Error
impl From<GetHostError> for Error
source§fn from(err: GetHostError) -> Self
fn from(err: GetHostError) -> Self
Converts to this type from the input type.
source§impl From<ListConnectionsError> for Error
impl From<ListConnectionsError> for Error
source§fn from(err: ListConnectionsError) -> Self
fn from(err: ListConnectionsError) -> Self
Converts to this type from the input type.
source§impl From<ListHostsError> for Error
impl From<ListHostsError> for Error
source§fn from(err: ListHostsError) -> Self
fn from(err: ListHostsError) -> Self
Converts to this type from the input type.
source§impl From<ListTagsForResourceError> for Error
impl From<ListTagsForResourceError> for Error
source§fn from(err: ListTagsForResourceError) -> Self
fn from(err: ListTagsForResourceError) -> Self
Converts to this type from the input type.
source§impl<R> From<SdkError<CreateConnectionError, R>> for Errorwhere
R: Send + Sync + Debug + 'static,
impl<R> From<SdkError<CreateConnectionError, R>> for Errorwhere
R: Send + Sync + Debug + 'static,
source§fn from(err: SdkError<CreateConnectionError, R>) -> Self
fn from(err: SdkError<CreateConnectionError, R>) -> Self
Converts to this type from the input type.
source§impl<R> From<SdkError<CreateHostError, R>> for Errorwhere
R: Send + Sync + Debug + 'static,
impl<R> From<SdkError<CreateHostError, R>> for Errorwhere
R: Send + Sync + Debug + 'static,
source§fn from(err: SdkError<CreateHostError, R>) -> Self
fn from(err: SdkError<CreateHostError, R>) -> Self
Converts to this type from the input type.
source§impl<R> From<SdkError<DeleteConnectionError, R>> for Errorwhere
R: Send + Sync + Debug + 'static,
impl<R> From<SdkError<DeleteConnectionError, R>> for Errorwhere
R: Send + Sync + Debug + 'static,
source§fn from(err: SdkError<DeleteConnectionError, R>) -> Self
fn from(err: SdkError<DeleteConnectionError, R>) -> Self
Converts to this type from the input type.
source§impl<R> From<SdkError<DeleteHostError, R>> for Errorwhere
R: Send + Sync + Debug + 'static,
impl<R> From<SdkError<DeleteHostError, R>> for Errorwhere
R: Send + Sync + Debug + 'static,
source§fn from(err: SdkError<DeleteHostError, R>) -> Self
fn from(err: SdkError<DeleteHostError, R>) -> Self
Converts to this type from the input type.
source§impl<R> From<SdkError<GetConnectionError, R>> for Errorwhere
R: Send + Sync + Debug + 'static,
impl<R> From<SdkError<GetConnectionError, R>> for Errorwhere
R: Send + Sync + Debug + 'static,
source§fn from(err: SdkError<GetConnectionError, R>) -> Self
fn from(err: SdkError<GetConnectionError, R>) -> Self
Converts to this type from the input type.
source§impl<R> From<SdkError<GetHostError, R>> for Errorwhere
R: Send + Sync + Debug + 'static,
impl<R> From<SdkError<GetHostError, R>> for Errorwhere
R: Send + Sync + Debug + 'static,
source§fn from(err: SdkError<GetHostError, R>) -> Self
fn from(err: SdkError<GetHostError, R>) -> Self
Converts to this type from the input type.
source§impl<R> From<SdkError<ListConnectionsError, R>> for Errorwhere
R: Send + Sync + Debug + 'static,
impl<R> From<SdkError<ListConnectionsError, R>> for Errorwhere
R: Send + Sync + Debug + 'static,
source§fn from(err: SdkError<ListConnectionsError, R>) -> Self
fn from(err: SdkError<ListConnectionsError, R>) -> Self
Converts to this type from the input type.
source§impl<R> From<SdkError<ListHostsError, R>> for Errorwhere
R: Send + Sync + Debug + 'static,
impl<R> From<SdkError<ListHostsError, R>> for Errorwhere
R: Send + Sync + Debug + 'static,
source§fn from(err: SdkError<ListHostsError, R>) -> Self
fn from(err: SdkError<ListHostsError, R>) -> Self
Converts to this type from the input type.
source§impl<R> From<SdkError<ListTagsForResourceError, R>> for Errorwhere
R: Send + Sync + Debug + 'static,
impl<R> From<SdkError<ListTagsForResourceError, R>> for Errorwhere
R: Send + Sync + Debug + 'static,
source§fn from(err: SdkError<ListTagsForResourceError, R>) -> Self
fn from(err: SdkError<ListTagsForResourceError, R>) -> Self
Converts to this type from the input type.
source§impl<R> From<SdkError<TagResourceError, R>> for Errorwhere
R: Send + Sync + Debug + 'static,
impl<R> From<SdkError<TagResourceError, R>> for Errorwhere
R: Send + Sync + Debug + 'static,
source§fn from(err: SdkError<TagResourceError, R>) -> Self
fn from(err: SdkError<TagResourceError, R>) -> Self
Converts to this type from the input type.
source§impl<R> From<SdkError<UntagResourceError, R>> for Errorwhere
R: Send + Sync + Debug + 'static,
impl<R> From<SdkError<UntagResourceError, R>> for Errorwhere
R: Send + Sync + Debug + 'static,
source§fn from(err: SdkError<UntagResourceError, R>) -> Self
fn from(err: SdkError<UntagResourceError, R>) -> Self
Converts to this type from the input type.
source§impl<R> From<SdkError<UpdateHostError, R>> for Errorwhere
R: Send + Sync + Debug + 'static,
impl<R> From<SdkError<UpdateHostError, R>> for Errorwhere
R: Send + Sync + Debug + 'static,
source§fn from(err: SdkError<UpdateHostError, R>) -> Self
fn from(err: SdkError<UpdateHostError, R>) -> Self
Converts to this type from the input type.
source§impl From<TagResourceError> for Error
impl From<TagResourceError> for Error
source§fn from(err: TagResourceError) -> Self
fn from(err: TagResourceError) -> Self
Converts to this type from the input type.
source§impl From<UntagResourceError> for Error
impl From<UntagResourceError> for Error
source§fn from(err: UntagResourceError) -> Self
fn from(err: UntagResourceError) -> Self
Converts to this type from the input type.
source§impl From<UpdateHostError> for Error
impl From<UpdateHostError> for Error
source§fn from(err: UpdateHostError) -> Self
fn from(err: UpdateHostError) -> Self
Converts to this type from the input type.