Class: Aws::Lightsail::Errors::ServiceException
- Inherits:
-
ServiceError
- Object
- ServiceError
- Aws::Lightsail::Errors::ServiceException
- Defined in:
- lib/aws-sdk-lightsail/errors.rb
Instance Method Summary collapse
- #code ⇒ String
- #docs ⇒ String
-
#initialize(context, message, data = Aws::EmptyStructure.new) ⇒ ServiceException
constructor
A new instance of ServiceException.
- #message ⇒ String
- #tip ⇒ String
Constructor Details
#initialize(context, message, data = Aws::EmptyStructure.new) ⇒ ServiceException
Returns a new instance of ServiceException.
199 200 201 |
# File 'lib/aws-sdk-lightsail/errors.rb', line 199 def initialize(context, , data = Aws::EmptyStructure.new) super(context, , data) end |
Instance Method Details
#code ⇒ String
204 205 206 |
# File 'lib/aws-sdk-lightsail/errors.rb', line 204 def code @code || @data[:code] end |
#docs ⇒ String
209 210 211 |
# File 'lib/aws-sdk-lightsail/errors.rb', line 209 def docs @data[:docs] end |
#message ⇒ String
214 215 216 |
# File 'lib/aws-sdk-lightsail/errors.rb', line 214 def @message || @data[:message] end |
#tip ⇒ String
219 220 221 |
# File 'lib/aws-sdk-lightsail/errors.rb', line 219 def tip @data[:tip] end |