Class: Aws::ElasticInference::Errors::BadRequestException

Inherits:
ServiceError
  • Object
show all
Defined in:
gems/aws-sdk-elasticinference/lib/aws-sdk-elasticinference/errors.rb

Instance Method Summary collapse

Constructor Details

#initialize(context, message, data = Aws::EmptyStructure.new) ⇒ BadRequestException

Returns a new instance of BadRequestException.

Parameters:



43
44
45
# File 'gems/aws-sdk-elasticinference/lib/aws-sdk-elasticinference/errors.rb', line 43

def initialize(context, message, data = Aws::EmptyStructure.new)
  super(context, message, data)
end

Instance Method Details

#messageString

Returns:

  • (String)


48
49
50
# File 'gems/aws-sdk-elasticinference/lib/aws-sdk-elasticinference/errors.rb', line 48

def message
  @message || @data[:message]
end