Salome HOME
Promote/Review/Validate functionality for author of the study is improved.
[tools/siman.git] / Workspace / Siman-Common / src / org / splat / exception / LockOutdatedException.java
1 /*****************************************************************************
2  * Company         OPEN CASCADE
3  * Application     SIMAN
4  * File            $Id$ 
5  * Creation date   03.10.2012
6  * @author         Author: Maria KRUCHININA
7  * @version        Revision:
8  *****************************************************************************/
9
10 package org.splat.exception; 
11
12 import org.splat.common.properties.MessageKeyEnum;
13
14 /**
15  * Exception thrown when lock on object is timeout and can't be updated because
16  * object is outdated (obsolete).
17  * 
18  * @author Maria KRUCHININA
19  *
20  */
21 public class LockOutdatedException extends BusinessException {
22
23         /**
24          * Version id for serialization.
25          */
26         private static final long serialVersionUID = -4596111071538834057L;
27
28         /**
29          * Create a LockOutdatedException.
30          * 
31          * @param tableUid the table name uid 
32          * @param rowUid the row uid 
33          * @param userUid the user ID
34          */
35         public LockOutdatedException(final String tableUid, final String rowUid, final String userUid) {
36                 super(MessageKeyEnum.LCK_000004.toString(), tableUid, rowUid, userUid);
37         }
38
39         /**
40          * Create a LockOutdatedException.
41          * 
42          * @param throwable the cause
43          * @param tableUid the table name uid 
44          * @param rowUid the row uid 
45          * @param userUid the user ID
46          */
47         public LockOutdatedException(final Throwable throwable, final String tableUid, final String rowUid, final String userUid) {
48                 super(MessageKeyEnum.LCK_000004.toString(),throwable, tableUid, rowUid, userUid);
49         }
50 }