lib/aws-sdk-guardduty/errors.rb in aws-sdk-guardduty-1.93.0 vs lib/aws-sdk-guardduty/errors.rb in aws-sdk-guardduty-1.94.0

- old
+ new

@@ -29,10 +29,11 @@ # ## Error Classes # * {AccessDeniedException} # * {BadRequestException} # * {ConflictException} # * {InternalServerErrorException} + # * {ResourceNotFoundException} # # Additionally, error classes are dynamically generated for service errors based on the error code # if they are not defined above. module Errors @@ -101,9 +102,29 @@ class InternalServerErrorException < ServiceError # @param [Seahorse::Client::RequestContext] context # @param [String] message # @param [Aws::GuardDuty::Types::InternalServerErrorException] 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 ResourceNotFoundException < ServiceError + + # @param [Seahorse::Client::RequestContext] context + # @param [String] message + # @param [Aws::GuardDuty::Types::ResourceNotFoundException] data def initialize(context, message, data = Aws::EmptyStructure.new) super(context, message, data) end # @return [String]