# WARNING ABOUT GENERATED CODE # # This file is generated. See the contributing guide for more information: # https://github.com/aws/aws-sdk-ruby/blob/master/CONTRIBUTING.md # # WARNING ABOUT GENERATED CODE module Aws::ACM # When ACM returns an error response, the Ruby SDK constructs and raises an error. # These errors all extend Aws::ACM::Errors::ServiceError < {Aws::Errors::ServiceError} # # You can rescue all ACM errors using ServiceError: # # begin # # do stuff # rescue Aws::ACM::Errors::ServiceError # # rescues all ACM 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 # * {InvalidArgsException} # * {InvalidArnException} # * {InvalidDomainValidationOptionsException} # * {InvalidParameterException} # * {InvalidStateException} # * {InvalidTagException} # * {LimitExceededException} # * {RequestInProgressException} # * {ResourceInUseException} # * {ResourceNotFoundException} # * {TagPolicyException} # * {TooManyTagsException} # # 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 InvalidArgsException < ServiceError # @param [Seahorse::Client::RequestContext] context # @param [String] message # @param [Aws::ACM::Types::InvalidArgsException] data def initialize(context, message, data = Aws::EmptyStructure.new) super(context, message, data) end # @return [String] def message @message || @data[:message] end end class InvalidArnException < ServiceError # @param [Seahorse::Client::RequestContext] context # @param [String] message # @param [Aws::ACM::Types::InvalidArnException] data def initialize(context, message, data = Aws::EmptyStructure.new) super(context, message, data) end # @return [String] def message @message || @data[:message] end end class InvalidDomainValidationOptionsException < ServiceError # @param [Seahorse::Client::RequestContext] context # @param [String] message # @param [Aws::ACM::Types::InvalidDomainValidationOptionsException] data def initialize(context, message, data = Aws::EmptyStructure.new) super(context, message, data) end # @return [String] def message @message || @data[:message] end end class InvalidParameterException < ServiceError # @param [Seahorse::Client::RequestContext] context # @param [String] message # @param [Aws::ACM::Types::InvalidParameterException] data def initialize(context, message, data = Aws::EmptyStructure.new) super(context, message, data) end # @return [String] def message @message || @data[:message] end end class InvalidStateException < ServiceError # @param [Seahorse::Client::RequestContext] context # @param [String] message # @param [Aws::ACM::Types::InvalidStateException] data def initialize(context, message, data = Aws::EmptyStructure.new) super(context, message, data) end # @return [String] def message @message || @data[:message] end end class InvalidTagException < ServiceError # @param [Seahorse::Client::RequestContext] context # @param [String] message # @param [Aws::ACM::Types::InvalidTagException] data def initialize(context, message, data = Aws::EmptyStructure.new) super(context, message, data) end # @return [String] def message @message || @data[:message] end end class LimitExceededException < ServiceError # @param [Seahorse::Client::RequestContext] context # @param [String] message # @param [Aws::ACM::Types::LimitExceededException] data def initialize(context, message, data = Aws::EmptyStructure.new) super(context, message, data) end # @return [String] def message @message || @data[:message] end end class RequestInProgressException < ServiceError # @param [Seahorse::Client::RequestContext] context # @param [String] message # @param [Aws::ACM::Types::RequestInProgressException] data def initialize(context, message, data = Aws::EmptyStructure.new) super(context, message, data) end # @return [String] def message @message || @data[:message] end end class ResourceInUseException < ServiceError # @param [Seahorse::Client::RequestContext] context # @param [String] message # @param [Aws::ACM::Types::ResourceInUseException] data def initialize(context, message, data = Aws::EmptyStructure.new) super(context, message, data) end # @return [String] def message @message || @data[:message] end end class ResourceNotFoundException < ServiceError # @param [Seahorse::Client::RequestContext] context # @param [String] message # @param [Aws::ACM::Types::ResourceNotFoundException] data def initialize(context, message, data = Aws::EmptyStructure.new) super(context, message, data) end # @return [String] def message @message || @data[:message] end end class TagPolicyException < ServiceError # @param [Seahorse::Client::RequestContext] context # @param [String] message # @param [Aws::ACM::Types::TagPolicyException] 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 end end