Class: Aws::Lightsail::Errors::ServiceException

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

Instance Method Summary collapse

Constructor Details

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

Returns a new instance of ServiceException.

Parameters:



199
200
201
# File 'lib/aws-sdk-lightsail/errors.rb', line 199

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

Instance Method Details

#codeString

Returns:

  • (String)


204
205
206
# File 'lib/aws-sdk-lightsail/errors.rb', line 204

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

#docsString

Returns:

  • (String)


209
210
211
# File 'lib/aws-sdk-lightsail/errors.rb', line 209

def docs
  @data[:docs]
end

#messageString

Returns:

  • (String)


214
215
216
# File 'lib/aws-sdk-lightsail/errors.rb', line 214

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

#tipString

Returns:

  • (String)


219
220
221
# File 'lib/aws-sdk-lightsail/errors.rb', line 219

def tip
  @data[:tip]
end