Class: Aws::QLDBSession::Errors::BadRequestException

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

Instance Method Summary collapse

Constructor Details

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

Returns a new instance of BadRequestException.

Parameters:



45
46
47
# File 'gems/aws-sdk-qldbsession/lib/aws-sdk-qldbsession/errors.rb', line 45

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

Instance Method Details

#codeString

Returns:

  • (String)


55
56
57
# File 'gems/aws-sdk-qldbsession/lib/aws-sdk-qldbsession/errors.rb', line 55

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

#messageString

Returns:

  • (String)


50
51
52
# File 'gems/aws-sdk-qldbsession/lib/aws-sdk-qldbsession/errors.rb', line 50

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