Class: Aws::CloudSearch::Errors::BaseException
- Inherits:
-
ServiceError
- Object
- ServiceError
- Aws::CloudSearch::Errors::BaseException
- Defined in:
- lib/aws-sdk-cloudsearch/errors.rb
Instance Method Summary collapse
- #code ⇒ String
-
#initialize(context, message, data = Aws::EmptyStructure.new) ⇒ BaseException
constructor
A new instance of BaseException.
- #message ⇒ String
Constructor Details
#initialize(context, message, data = Aws::EmptyStructure.new) ⇒ BaseException
Returns a new instance of BaseException.
50 51 52 |
# File 'lib/aws-sdk-cloudsearch/errors.rb', line 50 def initialize(context, , data = Aws::EmptyStructure.new) super(context, , data) end |
Instance Method Details
#code ⇒ String
55 56 57 |
# File 'lib/aws-sdk-cloudsearch/errors.rb', line 55 def code @code || @data[:code] end |
#message ⇒ String
60 61 62 |
# File 'lib/aws-sdk-cloudsearch/errors.rb', line 60 def @message || @data[:message] end |