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.
ConcurrentModificationis used during parsing instead.
- This error class is not used.
- CredentialReportExpiredException
- This error class is not used.
ReportExpiredis used during parsing instead.
- This error class is not used.
- CredentialReportNotPresentException
- This error class is not used.
ReportNotPresentis used during parsing instead.
- This error class is not used.
- CredentialReportNotReadyException
- This error class is not used.
ReportInProgressis used during parsing instead.
- This error class is not used.
- DeleteConflictException
- This error class is not used.
DeleteConflictis used during parsing instead.
- This error class is not used.
- DuplicateCertificateException
- This error class is not used.
DuplicateCertificateis used during parsing instead.
- This error class is not used.
- DuplicateSSHPublicKeyException
- This error class is not used.
DuplicateSSHPublicKeyis used during parsing instead.
- This error class is not used.
- EntityAlreadyExistsException
- This error class is not used.
EntityAlreadyExistsis used during parsing instead.
- This error class is not used.
- EntityTemporarilyUnmodifiableException
- This error class is not used.
EntityTemporarilyUnmodifiableis used during parsing instead.
- This error class is not used.
- InvalidAuthenticationCodeException
- This error class is not used.
InvalidAuthenticationCodeis used during parsing instead.
- This error class is not used.
- InvalidCertificateException
- This error class is not used.
InvalidCertificateis used during parsing instead.
- This error class is not used.
- InvalidInputException
- This error class is not used.
InvalidInputis used during parsing instead.
- This error class is not used.
- InvalidPublicKeyException
- This error class is not used.
InvalidPublicKeyis used during parsing instead.
- This error class is not used.
- InvalidUserTypeException
- This error class is not used.
InvalidUserTypeis used during parsing instead.
- This error class is not used.
- KeyPairMismatchException
- This error class is not used.
KeyPairMismatchis used during parsing instead.
- This error class is not used.
- LimitExceededException
- This error class is not used.
LimitExceededis used during parsing instead.
- This error class is not used.
- MalformedCertificateException
- This error class is not used.
MalformedCertificateis used during parsing instead.
- This error class is not used.
- MalformedPolicyDocumentException
- This error class is not used.
MalformedPolicyDocumentis used during parsing instead.
- This error class is not used.
- NoSuchEntityException
- This error class is not used.
NoSuchEntityis used during parsing instead.
- This error class is not used.
- OpenIdIdpCommunicationErrorException
- This error class is not used.
OpenIdIdpCommunicationErroris used during parsing instead.
- This error class is not used.
- OrganizationNotFoundException
- OrganizationNotInAllFeaturesModeException
- PasswordPolicyViolationException
- This error class is not used.
PasswordPolicyViolationis used during parsing instead.
- This error class is not used.
- PolicyEvaluationException
- This error class is not used.
PolicyEvaluationis used during parsing instead.
- This error class is not used.
- PolicyNotAttachableException
- This error class is not used.
PolicyNotAttachableis used during parsing instead.
- This error class is not used.
- ReportGenerationLimitExceededException
- This error class is not used.
ReportGenerationLimitExceededis used during parsing instead.
- This error class is not used.
- ServiceAccessNotEnabledException
- ServiceFailureException
- This error class is not used.
ServiceFailureis used during parsing instead.
- This error class is not used.
- ServiceNotSupportedException
- This error class is not used.
NotSupportedServiceis used during parsing instead.
- This error class is not used.
- UnmodifiableEntityException
- This error class is not used.
UnmodifiableEntityis used during parsing instead.
- This error class is not used.
- UnrecognizedPublicKeyEncodingException
- This error class is not used.
UnrecognizedPublicKeyEncodingis 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