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:



225
226
227
# File 'gems/aws-sdk-shield/lib/aws-sdk-shield/errors.rb', line 225

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

Instance Method Details

#messageString

Returns:

  • (String)


230
231
232
# File 'gems/aws-sdk-shield/lib/aws-sdk-shield/errors.rb', line 230

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