lib/aws-sdk-pinpoint/errors.rb in aws-sdk-pinpoint-1.46.0 vs lib/aws-sdk-pinpoint/errors.rb in aws-sdk-pinpoint-1.47.0

- old
+ new

@@ -26,10 +26,11 @@ # information about the request that generated the error. # See {Seahorse::Client::RequestContext} for more information. # # ## Error Classes # * {BadRequestException} + # * {ConflictException} # * {ForbiddenException} # * {InternalServerErrorException} # * {MethodNotAllowedException} # * {NotFoundException} # * {PayloadTooLargeException} @@ -44,9 +45,29 @@ class BadRequestException < ServiceError # @param [Seahorse::Client::RequestContext] context # @param [String] message # @param [Aws::Pinpoint::Types::BadRequestException] data + def initialize(context, message, data = Aws::EmptyStructure.new) + super(context, message, data) + end + + # @return [String] + def message + @message || @data[:message] + end + + # @return [String] + def request_id + @data[:request_id] + end + end + + class ConflictException < ServiceError + + # @param [Seahorse::Client::RequestContext] context + # @param [String] message + # @param [Aws::Pinpoint::Types::ConflictException] data def initialize(context, message, data = Aws::EmptyStructure.new) super(context, message, data) end # @return [String]