#[non_exhaustive]pub enum DisassociateTeamMemberError {
ConcurrentModificationException(ConcurrentModificationException),
InvalidServiceRoleException(InvalidServiceRoleException),
ProjectNotFoundException(ProjectNotFoundException),
ValidationException(ValidationException),
Unhandled(Unhandled),
}Expand description
Error type for the DisassociateTeamMemberError operation.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
ConcurrentModificationException(ConcurrentModificationException)
Another modification is being made. That modification must complete before you can make your change.
InvalidServiceRoleException(InvalidServiceRoleException)
The service role is not valid.
ProjectNotFoundException(ProjectNotFoundException)
The specified AWS CodeStar project was not found.
ValidationException(ValidationException)
The specified input is either not valid, or it could not be validated.
Unhandled(Unhandled)
Unhandled directly is not forwards compatible. Instead, match using a variable wildcard pattern and check .code():
err if err.code() == Some("SpecificExceptionCode") => { /* handle the error */ }
See ProvideErrorMetadata for what information is available for the error.An unexpected error occurred (e.g., invalid JSON returned by the service or an unknown error code).
Implementations§
source§impl DisassociateTeamMemberError
impl DisassociateTeamMemberError
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 DisassociateTeamMemberError::Unhandled variant from any error type.
sourcepub fn generic(err: ErrorMetadata) -> Self
pub fn generic(err: ErrorMetadata) -> Self
Creates the DisassociateTeamMemberError::Unhandled variant from an 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_concurrent_modification_exception(&self) -> bool
pub fn is_concurrent_modification_exception(&self) -> bool
Returns true if the error kind is DisassociateTeamMemberError::ConcurrentModificationException.
sourcepub fn is_invalid_service_role_exception(&self) -> bool
pub fn is_invalid_service_role_exception(&self) -> bool
Returns true if the error kind is DisassociateTeamMemberError::InvalidServiceRoleException.
sourcepub fn is_project_not_found_exception(&self) -> bool
pub fn is_project_not_found_exception(&self) -> bool
Returns true if the error kind is DisassociateTeamMemberError::ProjectNotFoundException.
sourcepub fn is_validation_exception(&self) -> bool
pub fn is_validation_exception(&self) -> bool
Returns true if the error kind is DisassociateTeamMemberError::ValidationException.
Trait Implementations§
source§impl CreateUnhandledError for DisassociateTeamMemberError
impl CreateUnhandledError for DisassociateTeamMemberError
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 DisassociateTeamMemberError
impl Debug for DisassociateTeamMemberError
source§impl Error for DisassociateTeamMemberError
impl Error for DisassociateTeamMemberError
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<DisassociateTeamMemberError> for Error
impl From<DisassociateTeamMemberError> for Error
source§fn from(err: DisassociateTeamMemberError) -> Self
fn from(err: DisassociateTeamMemberError) -> Self
source§impl ProvideErrorMetadata for DisassociateTeamMemberError
impl ProvideErrorMetadata for DisassociateTeamMemberError
source§fn meta(&self) -> &ErrorMetadata
fn meta(&self) -> &ErrorMetadata
source§impl RequestId for DisassociateTeamMemberError
impl RequestId for DisassociateTeamMemberError
source§fn request_id(&self) -> Option<&str>
fn request_id(&self) -> Option<&str>
None if the service could not be reached.