lib/aws-sdk-pricing/errors.rb in aws-sdk-pricing-1.55.0 vs lib/aws-sdk-pricing/errors.rb in aws-sdk-pricing-1.56.0

- old
+ new

@@ -31,10 +31,11 @@ # * {ExpiredNextTokenException} # * {InternalErrorException} # * {InvalidNextTokenException} # * {InvalidParameterException} # * {NotFoundException} + # * {ResourceNotFoundException} # * {ThrottlingException} # # Additionally, error classes are dynamically generated for service errors based on the error code # if they are not defined above. module Errors @@ -123,9 +124,24 @@ class NotFoundException < ServiceError # @param [Seahorse::Client::RequestContext] context # @param [String] message # @param [Aws::Pricing::Types::NotFoundException] 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::Pricing::Types::ResourceNotFoundException] data def initialize(context, message, data = Aws::EmptyStructure.new) super(context, message, data) end # @return [String]