1 | <?php |
||
12 | class OptimisticLockException extends CouchDBException |
||
13 | { |
||
14 | private $document; |
||
15 | |||
16 | public function __construct($msg, $document) |
||
20 | |||
21 | /** |
||
22 | * Gets the document that caused the exception. |
||
23 | * |
||
24 | * @return object |
||
25 | */ |
||
26 | public function getDocument() |
||
30 | |||
31 | public static function lockFailed($document) |
||
35 | |||
36 | public static function lockFailedVersionMissmatch($document, $expectedLockVersion, $actualLockVersion) |
||
40 | |||
41 | public static function notVersioned($entityName) |
||
45 | } |
||
46 |