lib/aws-sdk-emr/errors.rb in aws-sdk-emr-1.16.0 vs lib/aws-sdk-emr/errors.rb in aws-sdk-emr-1.17.0

- old
+ new

@@ -8,7 +8,44 @@ module Aws::EMR module Errors extend Aws::Errors::DynamicErrors + class InternalServerException < ServiceError + + # @param [Seahorse::Client::RequestContext] context + # @param [String] message + # @param [Aws::EMR::Types::InternalServerException] data + def initialize(context, message, data = Aws::EmptyStructure.new) + super(context, message, data) + end + + # @return [String] + def message + @message || @data[:message] + end + + end + + class InvalidRequestException < ServiceError + + # @param [Seahorse::Client::RequestContext] context + # @param [String] message + # @param [Aws::EMR::Types::InvalidRequestException] data + def initialize(context, message, data = Aws::EmptyStructure.new) + super(context, message, data) + end + + # @return [String] + def error_code + @data[:error_code] + end + + # @return [String] + def message + @message || @data[:message] + end + + end + end end