Enum aws_sdk_codestar::Error
source · #[non_exhaustive]pub enum Error {
Show 14 variants
ConcurrentModificationException(ConcurrentModificationException),
InvalidNextTokenException(InvalidNextTokenException),
InvalidServiceRoleException(InvalidServiceRoleException),
LimitExceededException(LimitExceededException),
ProjectAlreadyExistsException(ProjectAlreadyExistsException),
ProjectConfigurationException(ProjectConfigurationException),
ProjectCreationFailedException(ProjectCreationFailedException),
ProjectNotFoundException(ProjectNotFoundException),
TeamMemberAlreadyAssociatedException(TeamMemberAlreadyAssociatedException),
TeamMemberNotFoundException(TeamMemberNotFoundException),
UserProfileAlreadyExistsException(UserProfileAlreadyExistsException),
UserProfileNotFoundException(UserProfileNotFoundException),
ValidationException(ValidationException),
Unhandled(Unhandled),
}
Expand description
All possible error types for this service.
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.
InvalidNextTokenException(InvalidNextTokenException)
The next token is not valid.
InvalidServiceRoleException(InvalidServiceRoleException)
The service role is not valid.
LimitExceededException(LimitExceededException)
A resource limit has been exceeded.
ProjectAlreadyExistsException(ProjectAlreadyExistsException)
An AWS CodeStar project with the same ID already exists in this region for the AWS account. AWS CodeStar project IDs must be unique within a region for the AWS account.
ProjectConfigurationException(ProjectConfigurationException)
Project configuration information is required but not specified.
ProjectCreationFailedException(ProjectCreationFailedException)
The project creation request was valid, but a nonspecific exception or error occurred during project creation. The project could not be created in AWS CodeStar.
ProjectNotFoundException(ProjectNotFoundException)
The specified AWS CodeStar project was not found.
TeamMemberAlreadyAssociatedException(TeamMemberAlreadyAssociatedException)
The team member is already associated with a role in this project.
TeamMemberNotFoundException(TeamMemberNotFoundException)
The specified team member was not found.
UserProfileAlreadyExistsException(UserProfileAlreadyExistsException)
A user profile with that name already exists in this region for the AWS account. AWS CodeStar user profile names must be unique within a region for the AWS account.
UserProfileNotFoundException(UserProfileNotFoundException)
The user profile 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).
Trait Implementations§
source§impl Error for Error
impl Error for Error
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<AssociateTeamMemberError> for Error
impl From<AssociateTeamMemberError> for Error
source§fn from(err: AssociateTeamMemberError) -> Self
fn from(err: AssociateTeamMemberError) -> Self
source§impl From<BuildError> for Error
impl From<BuildError> for Error
source§fn from(value: BuildError) -> Self
fn from(value: BuildError) -> Self
source§impl From<CreateProjectError> for Error
impl From<CreateProjectError> for Error
source§fn from(err: CreateProjectError) -> Self
fn from(err: CreateProjectError) -> Self
source§impl From<CreateUserProfileError> for Error
impl From<CreateUserProfileError> for Error
source§fn from(err: CreateUserProfileError) -> Self
fn from(err: CreateUserProfileError) -> Self
source§impl From<DeleteProjectError> for Error
impl From<DeleteProjectError> for Error
source§fn from(err: DeleteProjectError) -> Self
fn from(err: DeleteProjectError) -> Self
source§impl From<DeleteUserProfileError> for Error
impl From<DeleteUserProfileError> for Error
source§fn from(err: DeleteUserProfileError) -> Self
fn from(err: DeleteUserProfileError) -> Self
source§impl From<DescribeProjectError> for Error
impl From<DescribeProjectError> for Error
source§fn from(err: DescribeProjectError) -> Self
fn from(err: DescribeProjectError) -> Self
source§impl From<DescribeUserProfileError> for Error
impl From<DescribeUserProfileError> for Error
source§fn from(err: DescribeUserProfileError) -> Self
fn from(err: DescribeUserProfileError) -> Self
source§impl From<DisassociateTeamMemberError> for Error
impl From<DisassociateTeamMemberError> for Error
source§fn from(err: DisassociateTeamMemberError) -> Self
fn from(err: DisassociateTeamMemberError) -> Self
source§impl From<ListProjectsError> for Error
impl From<ListProjectsError> for Error
source§fn from(err: ListProjectsError) -> Self
fn from(err: ListProjectsError) -> Self
source§impl From<ListResourcesError> for Error
impl From<ListResourcesError> for Error
source§fn from(err: ListResourcesError) -> Self
fn from(err: ListResourcesError) -> Self
source§impl From<ListTagsForProjectError> for Error
impl From<ListTagsForProjectError> for Error
source§fn from(err: ListTagsForProjectError) -> Self
fn from(err: ListTagsForProjectError) -> Self
source§impl From<ListTeamMembersError> for Error
impl From<ListTeamMembersError> for Error
source§fn from(err: ListTeamMembersError) -> Self
fn from(err: ListTeamMembersError) -> Self
source§impl From<ListUserProfilesError> for Error
impl From<ListUserProfilesError> for Error
source§fn from(err: ListUserProfilesError) -> Self
fn from(err: ListUserProfilesError) -> Self
source§impl<R> From<SdkError<AssociateTeamMemberError, R>> for Error
impl<R> From<SdkError<AssociateTeamMemberError, R>> for Error
source§fn from(err: SdkError<AssociateTeamMemberError, R>) -> Self
fn from(err: SdkError<AssociateTeamMemberError, R>) -> Self
source§impl<R> From<SdkError<CreateProjectError, R>> for Error
impl<R> From<SdkError<CreateProjectError, R>> for Error
source§fn from(err: SdkError<CreateProjectError, R>) -> Self
fn from(err: SdkError<CreateProjectError, R>) -> Self
source§impl<R> From<SdkError<CreateUserProfileError, R>> for Error
impl<R> From<SdkError<CreateUserProfileError, R>> for Error
source§fn from(err: SdkError<CreateUserProfileError, R>) -> Self
fn from(err: SdkError<CreateUserProfileError, R>) -> Self
source§impl<R> From<SdkError<DeleteProjectError, R>> for Error
impl<R> From<SdkError<DeleteProjectError, R>> for Error
source§fn from(err: SdkError<DeleteProjectError, R>) -> Self
fn from(err: SdkError<DeleteProjectError, R>) -> Self
source§impl<R> From<SdkError<DeleteUserProfileError, R>> for Error
impl<R> From<SdkError<DeleteUserProfileError, R>> for Error
source§fn from(err: SdkError<DeleteUserProfileError, R>) -> Self
fn from(err: SdkError<DeleteUserProfileError, R>) -> Self
source§impl<R> From<SdkError<DescribeProjectError, R>> for Error
impl<R> From<SdkError<DescribeProjectError, R>> for Error
source§fn from(err: SdkError<DescribeProjectError, R>) -> Self
fn from(err: SdkError<DescribeProjectError, R>) -> Self
source§impl<R> From<SdkError<DescribeUserProfileError, R>> for Error
impl<R> From<SdkError<DescribeUserProfileError, R>> for Error
source§fn from(err: SdkError<DescribeUserProfileError, R>) -> Self
fn from(err: SdkError<DescribeUserProfileError, R>) -> Self
source§impl<R> From<SdkError<DisassociateTeamMemberError, R>> for Error
impl<R> From<SdkError<DisassociateTeamMemberError, R>> for Error
source§fn from(err: SdkError<DisassociateTeamMemberError, R>) -> Self
fn from(err: SdkError<DisassociateTeamMemberError, R>) -> Self
source§impl<R> From<SdkError<ListProjectsError, R>> for Error
impl<R> From<SdkError<ListProjectsError, R>> for Error
source§fn from(err: SdkError<ListProjectsError, R>) -> Self
fn from(err: SdkError<ListProjectsError, R>) -> Self
source§impl<R> From<SdkError<ListResourcesError, R>> for Error
impl<R> From<SdkError<ListResourcesError, R>> for Error
source§fn from(err: SdkError<ListResourcesError, R>) -> Self
fn from(err: SdkError<ListResourcesError, R>) -> Self
source§impl<R> From<SdkError<ListTagsForProjectError, R>> for Error
impl<R> From<SdkError<ListTagsForProjectError, R>> for Error
source§fn from(err: SdkError<ListTagsForProjectError, R>) -> Self
fn from(err: SdkError<ListTagsForProjectError, R>) -> Self
source§impl<R> From<SdkError<ListTeamMembersError, R>> for Error
impl<R> From<SdkError<ListTeamMembersError, R>> for Error
source§fn from(err: SdkError<ListTeamMembersError, R>) -> Self
fn from(err: SdkError<ListTeamMembersError, R>) -> Self
source§impl<R> From<SdkError<ListUserProfilesError, R>> for Error
impl<R> From<SdkError<ListUserProfilesError, R>> for Error
source§fn from(err: SdkError<ListUserProfilesError, R>) -> Self
fn from(err: SdkError<ListUserProfilesError, R>) -> Self
source§impl<R> From<SdkError<TagProjectError, R>> for Error
impl<R> From<SdkError<TagProjectError, R>> for Error
source§fn from(err: SdkError<TagProjectError, R>) -> Self
fn from(err: SdkError<TagProjectError, R>) -> Self
source§impl<R> From<SdkError<UntagProjectError, R>> for Error
impl<R> From<SdkError<UntagProjectError, R>> for Error
source§fn from(err: SdkError<UntagProjectError, R>) -> Self
fn from(err: SdkError<UntagProjectError, R>) -> Self
source§impl<R> From<SdkError<UpdateProjectError, R>> for Error
impl<R> From<SdkError<UpdateProjectError, R>> for Error
source§fn from(err: SdkError<UpdateProjectError, R>) -> Self
fn from(err: SdkError<UpdateProjectError, R>) -> Self
source§impl<R> From<SdkError<UpdateTeamMemberError, R>> for Error
impl<R> From<SdkError<UpdateTeamMemberError, R>> for Error
source§fn from(err: SdkError<UpdateTeamMemberError, R>) -> Self
fn from(err: SdkError<UpdateTeamMemberError, R>) -> Self
source§impl<R> From<SdkError<UpdateUserProfileError, R>> for Error
impl<R> From<SdkError<UpdateUserProfileError, R>> for Error
source§fn from(err: SdkError<UpdateUserProfileError, R>) -> Self
fn from(err: SdkError<UpdateUserProfileError, R>) -> Self
source§impl From<TagProjectError> for Error
impl From<TagProjectError> for Error
source§fn from(err: TagProjectError) -> Self
fn from(err: TagProjectError) -> Self
source§impl From<UntagProjectError> for Error
impl From<UntagProjectError> for Error
source§fn from(err: UntagProjectError) -> Self
fn from(err: UntagProjectError) -> Self
source§impl From<UpdateProjectError> for Error
impl From<UpdateProjectError> for Error
source§fn from(err: UpdateProjectError) -> Self
fn from(err: UpdateProjectError) -> Self
source§impl From<UpdateTeamMemberError> for Error
impl From<UpdateTeamMemberError> for Error
source§fn from(err: UpdateTeamMemberError) -> Self
fn from(err: UpdateTeamMemberError) -> Self
source§impl From<UpdateUserProfileError> for Error
impl From<UpdateUserProfileError> for Error
source§fn from(err: UpdateUserProfileError) -> Self
fn from(err: UpdateUserProfileError) -> Self
source§impl ProvideErrorMetadata for Error
impl ProvideErrorMetadata for Error
source§fn meta(&self) -> &ErrorMetadata
fn meta(&self) -> &ErrorMetadata
Auto Trait Implementations§
impl Freeze for Error
impl !RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl !UnwindSafe for Error
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more