Class: Aws::Shield::Errors::OptimisticLockException

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

Instance Method Summary collapse

Constructor Details

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

Returns a new instance of OptimisticLockException.

Parameters:



215
216
217
# File 'gems/aws-sdk-shield/lib/aws-sdk-shield/errors.rb', line 215

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

Instance Method Details

#messageString

Returns:

  • (String)


220
221
222
# File 'gems/aws-sdk-shield/lib/aws-sdk-shield/errors.rb', line 220

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