Class: Aws::MTurk::Errors::RequestError

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

Instance Method Summary collapse

Constructor Details

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

Returns a new instance of RequestError.

Parameters:



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

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

Instance Method Details

#messageString

Returns:

  • (String)


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

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

#turk_error_codeString

Returns:

  • (String)


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

def turk_error_code
  @data[:turk_error_code]
end