class CQL::OptimisticLockError

Overview

Optimistic Lock Error - Raised when a concurrent update has occurred

Defined in:

exceptions.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(message : String = "Record has been modified by another process", model_class : String | Nil = nil, id : DB::Any | Nil = nil, expected_version : Int32 | Nil = nil, actual_version : Int32 | Nil = nil) #

[View source]

Instance Method Detail

def actual_version : Int32 | Nil #

[View source]
def expected_version : Int32 | Nil #

[View source]
def id : DB::Any | Nil #

[View source]
def model_class : String | Nil #

[View source]