Module: Aws::CloudDirectory::Errors
- Defined in:
- gems/aws-sdk-clouddirectory/lib/aws-sdk-clouddirectory/errors.rb
Overview
When CloudDirectory returns an error response, the Ruby SDK constructs and raises an error. These errors all extend Aws::CloudDirectory::Errors::ServiceError < Errors::ServiceError
You can rescue all CloudDirectory errors using ServiceError:
begin
# do stuff
rescue Aws::CloudDirectory::Errors::ServiceError
# rescues all CloudDirectory 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
- AccessDeniedException
- BatchWriteException
- CannotListParentOfRootException
- DirectoryAlreadyExistsException
- DirectoryDeletedException
- DirectoryNotDisabledException
- DirectoryNotEnabledException
- FacetAlreadyExistsException
- FacetInUseException
- FacetNotFoundException
- FacetValidationException
- IncompatibleSchemaException
- IndexedAttributeMissingException
- InternalServiceException
- InvalidArnException
- InvalidAttachmentException
- InvalidFacetUpdateException
- InvalidNextTokenException
- InvalidRuleException
- InvalidSchemaDocException
- InvalidTaggingRequestException
- LimitExceededException
- LinkNameAlreadyInUseException
- NotIndexException
- NotNodeException
- NotPolicyException
- ObjectAlreadyDetachedException
- ObjectNotDetachedException
- ResourceNotFoundException
- RetryableConflictException
- SchemaAlreadyExistsException
- SchemaAlreadyPublishedException
- StillContainsLinksException
- UnsupportedIndexTypeException
- ValidationException
Additionally, error classes are dynamically generated for service errors based on the error code if they are not defined above.
Defined Under Namespace
Classes: AccessDeniedException, BatchWriteException, CannotListParentOfRootException, DirectoryAlreadyExistsException, DirectoryDeletedException, DirectoryNotDisabledException, DirectoryNotEnabledException, FacetAlreadyExistsException, FacetInUseException, FacetNotFoundException, FacetValidationException, IncompatibleSchemaException, IndexedAttributeMissingException, InternalServiceException, InvalidArnException, InvalidAttachmentException, InvalidFacetUpdateException, InvalidNextTokenException, InvalidRuleException, InvalidSchemaDocException, InvalidTaggingRequestException, LimitExceededException, LinkNameAlreadyInUseException, NotIndexException, NotNodeException, NotPolicyException, ObjectAlreadyDetachedException, ObjectNotDetachedException, ResourceNotFoundException, RetryableConflictException, SchemaAlreadyExistsException, SchemaAlreadyPublishedException, StillContainsLinksException, UnsupportedIndexTypeException, ValidationException