lib/aws-sdk-guardduty/errors.rb in aws-sdk-guardduty-1.68.0 vs lib/aws-sdk-guardduty/errors.rb in aws-sdk-guardduty-1.69.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} # * {InternalServerErrorException} # # Additionally, error classes are dynamically generated for service errors based on the error code # if they are not defined above. module Errors @@ -39,9 +40,29 @@ class BadRequestException < ServiceError # @param [Seahorse::Client::RequestContext] context # @param [String] message # @param [Aws::GuardDuty::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 type + @data[:type] + end + end + + class ConflictException < ServiceError + + # @param [Seahorse::Client::RequestContext] context + # @param [String] message + # @param [Aws::GuardDuty::Types::ConflictException] data def initialize(context, message, data = Aws::EmptyStructure.new) super(context, message, data) end # @return [String]