Class: Aws::Lightsail::Errors::ServiceException
- Inherits:
-
ServiceError
- Object
- ServiceError
- Aws::Lightsail::Errors::ServiceException
- Defined in:
- gems/aws-sdk-lightsail/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.
230 231 232 |
# File 'gems/aws-sdk-lightsail/lib/aws-sdk-lightsail/errors.rb', line 230 def initialize(context, , data = Aws::EmptyStructure.new) super(context, , data) end |
Instance Method Details
#code ⇒ String
235 236 237 |
# File 'gems/aws-sdk-lightsail/lib/aws-sdk-lightsail/errors.rb', line 235 def code @code || @data[:code] end |
#docs ⇒ String
240 241 242 |
# File 'gems/aws-sdk-lightsail/lib/aws-sdk-lightsail/errors.rb', line 240 def docs @data[:docs] end |
#message ⇒ String
245 246 247 |
# File 'gems/aws-sdk-lightsail/lib/aws-sdk-lightsail/errors.rb', line 245 def @message || @data[:message] end |
#tip ⇒ String
250 251 252 |
# File 'gems/aws-sdk-lightsail/lib/aws-sdk-lightsail/errors.rb', line 250 def tip @data[:tip] end |