#[non_exhaustive]pub enum AddPartnerError {
ClusterNotFoundFault(ClusterNotFoundFault),
PartnerNotFoundFault(PartnerNotFoundFault),
UnauthorizedPartnerIntegrationFault(UnauthorizedPartnerIntegrationFault),
Unhandled(Unhandled),
}
Expand description
Error type for the AddPartnerError
operation.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
ClusterNotFoundFault(ClusterNotFoundFault)
The ClusterIdentifier
parameter does not refer to an existing cluster.
PartnerNotFoundFault(PartnerNotFoundFault)
The name of the partner was not found.
The partner integration is not authorized.
Unhandled(Unhandled)
An unexpected error occurred (e.g., invalid JSON returned by the service or an unknown error code).
Implementations§
source§impl AddPartnerError
impl AddPartnerError
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 AddPartnerError::Unhandled
variant from any error type.
sourcepub fn generic(err: ErrorMetadata) -> Self
pub fn generic(err: ErrorMetadata) -> Self
Creates the AddPartnerError::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_cluster_not_found_fault(&self) -> bool
pub fn is_cluster_not_found_fault(&self) -> bool
Returns true
if the error kind is AddPartnerError::ClusterNotFoundFault
.
sourcepub fn is_partner_not_found_fault(&self) -> bool
pub fn is_partner_not_found_fault(&self) -> bool
Returns true
if the error kind is AddPartnerError::PartnerNotFoundFault
.
Returns true
if the error kind is AddPartnerError::UnauthorizedPartnerIntegrationFault
.
Trait Implementations§
source§impl CreateUnhandledError for AddPartnerError
impl CreateUnhandledError for AddPartnerError
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 AddPartnerError
impl Debug for AddPartnerError
source§impl Display for AddPartnerError
impl Display for AddPartnerError
source§impl Error for AddPartnerError
impl Error for AddPartnerError
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<AddPartnerError> for Error
impl From<AddPartnerError> for Error
source§fn from(err: AddPartnerError) -> Self
fn from(err: AddPartnerError) -> Self
source§impl ProvideErrorKind for AddPartnerError
impl ProvideErrorKind for AddPartnerError
source§impl ProvideErrorMetadata for AddPartnerError
impl ProvideErrorMetadata for AddPartnerError
source§fn meta(&self) -> &ErrorMetadata
fn meta(&self) -> &ErrorMetadata
source§impl RequestId for AddPartnerError
impl RequestId for AddPartnerError
source§fn request_id(&self) -> Option<&str>
fn request_id(&self) -> Option<&str>
None
if the service could not be reached.