lib/aws-sdk-acm/errors.rb in aws-sdk-acm-1.39.0 vs lib/aws-sdk-acm/errors.rb in aws-sdk-acm-1.40.0

- old
+ new

@@ -25,10 +25,12 @@ # 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 + # * {AccessDeniedException} + # * {ConflictException} # * {InvalidArgsException} # * {InvalidArnException} # * {InvalidDomainValidationOptionsException} # * {InvalidParameterException} # * {InvalidStateException} @@ -36,18 +38,50 @@ # * {LimitExceededException} # * {RequestInProgressException} # * {ResourceInUseException} # * {ResourceNotFoundException} # * {TagPolicyException} + # * {ThrottlingException} # * {TooManyTagsException} + # * {ValidationException} # # 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 AccessDeniedException < ServiceError + + # @param [Seahorse::Client::RequestContext] context + # @param [String] message + # @param [Aws::ACM::Types::AccessDeniedException] data + def initialize(context, message, data = Aws::EmptyStructure.new) + super(context, message, data) + end + + # @return [String] + def message + @message || @data[:message] + end + end + + class ConflictException < ServiceError + + # @param [Seahorse::Client::RequestContext] context + # @param [String] message + # @param [Aws::ACM::Types::ConflictException] data + def initialize(context, message, data = Aws::EmptyStructure.new) + super(context, message, data) + end + + # @return [String] + def message + @message || @data[:message] + end + end + class InvalidArgsException < ServiceError # @param [Seahorse::Client::RequestContext] context # @param [String] message # @param [Aws::ACM::Types::InvalidArgsException] data @@ -209,14 +243,44 @@ def message @message || @data[:message] end end + class ThrottlingException < ServiceError + + # @param [Seahorse::Client::RequestContext] context + # @param [String] message + # @param [Aws::ACM::Types::ThrottlingException] data + def initialize(context, message, data = Aws::EmptyStructure.new) + super(context, message, data) + end + + # @return [String] + def message + @message || @data[:message] + end + end + class TooManyTagsException < ServiceError # @param [Seahorse::Client::RequestContext] context # @param [String] message # @param [Aws::ACM::Types::TooManyTagsException] data + def initialize(context, message, data = Aws::EmptyStructure.new) + super(context, message, data) + end + + # @return [String] + def message + @message || @data[:message] + end + end + + class ValidationException < ServiceError + + # @param [Seahorse::Client::RequestContext] context + # @param [String] message + # @param [Aws::ACM::Types::ValidationException] data def initialize(context, message, data = Aws::EmptyStructure.new) super(context, message, data) end # @return [String]