Module: Aws::IAM::Errors
- Defined in:
- gems/aws-sdk-iam/lib/aws-sdk-iam/errors.rb
Overview
When IAM returns an error response, the Ruby SDK constructs and raises an error. These errors all extend Aws::IAM::Errors::ServiceError < Errors::ServiceError
You can rescue all IAM errors using ServiceError:
begin
# do stuff
rescue Aws::IAM::Errors::ServiceError
# rescues all IAM API errors
end
Request Context
ServiceError objects have a #context method that returns information about the request that generated the error. See Seahorse::Client::RequestContext for more information.
Error Classes
- AccountNotManagementOrDelegatedAdministratorException
- CallerIsNotManagementAccountException
- ConcurrentModificationException
- This error class is not used.
ConcurrentModification
is used during parsing instead.
- This error class is not used.
- CredentialReportExpiredException
- This error class is not used.
ReportExpired
is used during parsing instead.
- This error class is not used.
- CredentialReportNotPresentException
- This error class is not used.
ReportNotPresent
is used during parsing instead.
- This error class is not used.
- CredentialReportNotReadyException
- This error class is not used.
ReportInProgress
is used during parsing instead.
- This error class is not used.
- DeleteConflictException
- This error class is not used.
DeleteConflict
is used during parsing instead.
- This error class is not used.
- DuplicateCertificateException
- This error class is not used.
DuplicateCertificate
is used during parsing instead.
- This error class is not used.
- DuplicateSSHPublicKeyException
- This error class is not used.
DuplicateSSHPublicKey
is used during parsing instead.
- This error class is not used.
- EntityAlreadyExistsException
- This error class is not used.
EntityAlreadyExists
is used during parsing instead.
- This error class is not used.
- EntityTemporarilyUnmodifiableException
- This error class is not used.
EntityTemporarilyUnmodifiable
is used during parsing instead.
- This error class is not used.
- InvalidAuthenticationCodeException
- This error class is not used.
InvalidAuthenticationCode
is used during parsing instead.
- This error class is not used.
- InvalidCertificateException
- This error class is not used.
InvalidCertificate
is used during parsing instead.
- This error class is not used.
- InvalidInputException
- This error class is not used.
InvalidInput
is used during parsing instead.
- This error class is not used.
- InvalidPublicKeyException
- This error class is not used.
InvalidPublicKey
is used during parsing instead.
- This error class is not used.
- InvalidUserTypeException
- This error class is not used.
InvalidUserType
is used during parsing instead.
- This error class is not used.
- KeyPairMismatchException
- This error class is not used.
KeyPairMismatch
is used during parsing instead.
- This error class is not used.
- LimitExceededException
- This error class is not used.
LimitExceeded
is used during parsing instead.
- This error class is not used.
- MalformedCertificateException
- This error class is not used.
MalformedCertificate
is used during parsing instead.
- This error class is not used.
- MalformedPolicyDocumentException
- This error class is not used.
MalformedPolicyDocument
is used during parsing instead.
- This error class is not used.
- NoSuchEntityException
- This error class is not used.
NoSuchEntity
is used during parsing instead.
- This error class is not used.
- OpenIdIdpCommunicationErrorException
- This error class is not used.
OpenIdIdpCommunicationError
is used during parsing instead.
- This error class is not used.
- OrganizationNotFoundException
- OrganizationNotInAllFeaturesModeException
- PasswordPolicyViolationException
- This error class is not used.
PasswordPolicyViolation
is used during parsing instead.
- This error class is not used.
- PolicyEvaluationException
- This error class is not used.
PolicyEvaluation
is used during parsing instead.
- This error class is not used.
- PolicyNotAttachableException
- This error class is not used.
PolicyNotAttachable
is used during parsing instead.
- This error class is not used.
- ReportGenerationLimitExceededException
- This error class is not used.
ReportGenerationLimitExceeded
is used during parsing instead.
- This error class is not used.
- ServiceAccessNotEnabledException
- ServiceFailureException
- This error class is not used.
ServiceFailure
is used during parsing instead.
- This error class is not used.
- ServiceNotSupportedException
- This error class is not used.
NotSupportedService
is used during parsing instead.
- This error class is not used.
- UnmodifiableEntityException
- This error class is not used.
UnmodifiableEntity
is used during parsing instead.
- This error class is not used.
- UnrecognizedPublicKeyEncodingException
- This error class is not used.
UnrecognizedPublicKeyEncoding
is used during parsing instead.
- This error class is not used.
Additionally, error classes are dynamically generated for service errors based on the error code if they are not defined above.
Defined Under Namespace
Classes: AccountNotManagementOrDelegatedAdministratorException, CallerIsNotManagementAccountException, ConcurrentModificationException, CredentialReportExpiredException, CredentialReportNotPresentException, CredentialReportNotReadyException, DeleteConflictException, DuplicateCertificateException, DuplicateSSHPublicKeyException, EntityAlreadyExistsException, EntityTemporarilyUnmodifiableException, InvalidAuthenticationCodeException, InvalidCertificateException, InvalidInputException, InvalidPublicKeyException, InvalidUserTypeException, KeyPairMismatchException, LimitExceededException, MalformedCertificateException, MalformedPolicyDocumentException, NoSuchEntityException, OpenIdIdpCommunicationErrorException, OrganizationNotFoundException, OrganizationNotInAllFeaturesModeException, PasswordPolicyViolationException, PolicyEvaluationException, PolicyNotAttachableException, ReportGenerationLimitExceededException, ServiceAccessNotEnabledException, ServiceFailureException, ServiceNotSupportedException, UnmodifiableEntityException, UnrecognizedPublicKeyEncodingException