Class: Aws::MTurk::Errors::RequestError
- Inherits:
-
ServiceError
- Object
- ServiceError
- Aws::MTurk::Errors::RequestError
- Defined in:
- lib/aws-sdk-mturk/errors.rb
Instance Method Summary collapse
-
#initialize(context, message, data = Aws::EmptyStructure.new) ⇒ RequestError
constructor
A new instance of RequestError.
- #message ⇒ String
- #turk_error_code ⇒ String
Constructor Details
#initialize(context, message, data = Aws::EmptyStructure.new) ⇒ RequestError
Returns a new instance of RequestError.
44 45 46 |
# File 'lib/aws-sdk-mturk/errors.rb', line 44 def initialize(context, , data = Aws::EmptyStructure.new) super(context, , data) end |
Instance Method Details
#message ⇒ String
49 50 51 |
# File 'lib/aws-sdk-mturk/errors.rb', line 49 def @message || @data[:message] end |
#turk_error_code ⇒ String
54 55 56 |
# File 'lib/aws-sdk-mturk/errors.rb', line 54 def turk_error_code @data[:turk_error_code] end |