lib/aws-sdk-fsx/errors.rb in aws-sdk-fsx-1.15.0 vs lib/aws-sdk-fsx/errors.rb in aws-sdk-fsx-1.16.0

- old
+ new

@@ -4,10 +4,53 @@ # https://github.com/aws/aws-sdk-ruby/blob/master/CONTRIBUTING.md # # WARNING ABOUT GENERATED CODE module Aws::FSx + + # When FSx returns an error response, the Ruby SDK constructs and raises an error. + # These errors all extend Aws::FSx::Errors::ServiceError < {Aws::Errors::ServiceError} + # + # You can rescue all FSx errors using ServiceError: + # + # begin + # # do stuff + # rescue Aws::FSx::Errors::ServiceError + # # rescues all FSx API errors + # end + # + # + # ## Request Context + # ServiceError objects have a {Aws::Errors::ServiceError#context #context} method that returns + # information about the request that generated the error. + # See {Seahorse::Client::RequestContext} for more information. + # + # ## Error Classes + # * {ActiveDirectoryError} + # * {BackupInProgress} + # * {BackupNotFound} + # * {BackupRestoring} + # * {BadRequest} + # * {DataRepositoryTaskEnded} + # * {DataRepositoryTaskExecuting} + # * {DataRepositoryTaskNotFound} + # * {FileSystemNotFound} + # * {IncompatibleParameterError} + # * {InternalServerError} + # * {InvalidExportPath} + # * {InvalidImportPath} + # * {InvalidNetworkSettings} + # * {InvalidPerUnitStorageThroughput} + # * {MissingFileSystemConfiguration} + # * {NotServiceResourceError} + # * {ResourceDoesNotSupportTagging} + # * {ResourceNotFound} + # * {ServiceLimitExceeded} + # * {UnsupportedOperation} + # + # Additionally, error classes are dynamically generated for service errors based on the error code + # if they are not defined above. module Errors extend Aws::Errors::DynamicErrors class ActiveDirectoryError < ServiceError @@ -31,11 +74,10 @@ # @return [String] def message @message || @data[:message] end - end class BackupInProgress < ServiceError # @param [Seahorse::Client::RequestContext] context @@ -47,11 +89,10 @@ # @return [String] def message @message || @data[:message] end - end class BackupNotFound < ServiceError # @param [Seahorse::Client::RequestContext] context @@ -63,11 +104,10 @@ # @return [String] def message @message || @data[:message] end - end class BackupRestoring < ServiceError # @param [Seahorse::Client::RequestContext] context @@ -84,11 +124,10 @@ # @return [String] def file_system_id @data[:file_system_id] end - end class BadRequest < ServiceError # @param [Seahorse::Client::RequestContext] context @@ -100,11 +139,10 @@ # @return [String] def message @message || @data[:message] end - end class DataRepositoryTaskEnded < ServiceError # @param [Seahorse::Client::RequestContext] context @@ -116,11 +154,10 @@ # @return [String] def message @message || @data[:message] end - end class DataRepositoryTaskExecuting < ServiceError # @param [Seahorse::Client::RequestContext] context @@ -132,11 +169,10 @@ # @return [String] def message @message || @data[:message] end - end class DataRepositoryTaskNotFound < ServiceError # @param [Seahorse::Client::RequestContext] context @@ -148,11 +184,10 @@ # @return [String] def message @message || @data[:message] end - end class FileSystemNotFound < ServiceError # @param [Seahorse::Client::RequestContext] context @@ -164,11 +199,10 @@ # @return [String] def message @message || @data[:message] end - end class IncompatibleParameterError < ServiceError # @param [Seahorse::Client::RequestContext] context @@ -185,11 +219,10 @@ # @return [String] def message @message || @data[:message] end - end class InternalServerError < ServiceError # @param [Seahorse::Client::RequestContext] context @@ -201,11 +234,10 @@ # @return [String] def message @message || @data[:message] end - end class InvalidExportPath < ServiceError # @param [Seahorse::Client::RequestContext] context @@ -217,11 +249,10 @@ # @return [String] def message @message || @data[:message] end - end class InvalidImportPath < ServiceError # @param [Seahorse::Client::RequestContext] context @@ -233,11 +264,10 @@ # @return [String] def message @message || @data[:message] end - end class InvalidNetworkSettings < ServiceError # @param [Seahorse::Client::RequestContext] context @@ -259,11 +289,10 @@ # @return [String] def invalid_security_group_id @data[:invalid_security_group_id] end - end class InvalidPerUnitStorageThroughput < ServiceError # @param [Seahorse::Client::RequestContext] context @@ -275,11 +304,10 @@ # @return [String] def message @message || @data[:message] end - end class MissingFileSystemConfiguration < ServiceError # @param [Seahorse::Client::RequestContext] context @@ -291,11 +319,10 @@ # @return [String] def message @message || @data[:message] end - end class NotServiceResourceError < ServiceError # @param [Seahorse::Client::RequestContext] context @@ -312,11 +339,10 @@ # @return [String] def message @message || @data[:message] end - end class ResourceDoesNotSupportTagging < ServiceError # @param [Seahorse::Client::RequestContext] context @@ -333,11 +359,10 @@ # @return [String] def message @message || @data[:message] end - end class ResourceNotFound < ServiceError # @param [Seahorse::Client::RequestContext] context @@ -354,11 +379,10 @@ # @return [String] def message @message || @data[:message] end - end class ServiceLimitExceeded < ServiceError # @param [Seahorse::Client::RequestContext] context @@ -375,11 +399,10 @@ # @return [String] def message @message || @data[:message] end - end class UnsupportedOperation < ServiceError # @param [Seahorse::Client::RequestContext] context @@ -391,10 +414,9 @@ # @return [String] def message @message || @data[:message] end - end end end