lib/aws-sdk-signer/errors.rb in aws-sdk-signer-1.18.0 vs lib/aws-sdk-signer/errors.rb in aws-sdk-signer-1.19.0

- old
+ new

@@ -9,36 +9,32 @@ # When Signer returns an error response, the Ruby SDK constructs and raises an error. # These errors all extend Aws::Signer::Errors::ServiceError < {Aws::Errors::ServiceError} # # You can rescue all Signer errors using ServiceError: + # # begin # # do stuff # rescue Aws::Signer::Errors::ServiceError # # rescues all Signer 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, including: - # * - # * #params - The request params - # * #operation_name - Name of the API operation invoked - # * #http_request - # * #http_response - # * etc ... - # + # information about the request that generated the error. # See {Seahorse::Client::RequestContext} for more information. # # ## Error Classes # * {AccessDeniedException} # * {BadRequestException} # * {InternalServiceErrorException} # * {NotFoundException} # * {ResourceNotFoundException} # * {ThrottlingException} # * {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 @@ -54,11 +50,10 @@ # @return [String] def message @message || @data[:message] end - end class BadRequestException < ServiceError # @param [Seahorse::Client::RequestContext] context @@ -70,11 +65,10 @@ # @return [String] def message @message || @data[:message] end - end class InternalServiceErrorException < ServiceError # @param [Seahorse::Client::RequestContext] context @@ -86,11 +80,10 @@ # @return [String] def message @message || @data[:message] end - end class NotFoundException < ServiceError # @param [Seahorse::Client::RequestContext] context @@ -102,11 +95,10 @@ # @return [String] def message @message || @data[:message] end - end class ResourceNotFoundException < ServiceError # @param [Seahorse::Client::RequestContext] context @@ -118,11 +110,10 @@ # @return [String] def message @message || @data[:message] end - end class ThrottlingException < ServiceError # @param [Seahorse::Client::RequestContext] context @@ -134,11 +125,10 @@ # @return [String] def message @message || @data[:message] end - end class ValidationException < ServiceError # @param [Seahorse::Client::RequestContext] context @@ -150,10 +140,9 @@ # @return [String] def message @message || @data[:message] end - end end end