Salome HOME
54bf6633c654ecf8237c3804cd2fa36dda7d9126
[tools/siman.git] / Workspace / Siman-Common / src / org / splat / exception / LockProtectedException.java
1 /*****************************************************************************
2  * Company         EURIWARE
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 a lock has another one and can't be deleted, created 
16  * or updated.
17  * @author Maria KRUCHININA
18  *
19  */
20 public class LockProtectedException extends AbstractException {
21
22         /**
23          * Version id for serialization.
24          */
25         private static final long serialVersionUID = -4596111071538834057L;
26
27         /**
28          * Create a LockProtectedException.
29          * 
30          * @param tableUid the table name uid 
31          * @param rowUid the row uid 
32          * @param userUid the user ID
33          */
34         public LockProtectedException(final String tableUid, final String rowUid, final String userUid) {
35                 super(MessageKeyEnum.LCK_000003.toString(), tableUid, rowUid, userUid);
36         }
37
38         /**
39          * Create a LockProtectedException.
40          * 
41          * @param throwable the cause
42          * @param tableUid the table name uid 
43          * @param rowUid the row uid 
44          * @param userUid the user ID
45          */
46         public LockProtectedException(final Throwable throwable, final String tableUid, final String rowUid, final String userUid) {
47                 super(MessageKeyEnum.LCK_000003.toString(),throwable, tableUid, rowUid, userUid);
48         }
49
50 }