Salome HOME
Copyrights update 2015.
[tools/siman.git] / Workspace / Siman-Common / src / org / splat / exception / LockNotExistsException.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 does not exist.
16  * @author Maria KRUCHININA
17  *
18  */
19 public class LockNotExistsException extends BusinessException {
20         
21         /**
22          * Version id for serialization.
23          */
24         private static final long serialVersionUID = -4596111071538834057L;
25
26         /**
27          * Create a LockNotExistsException.
28          * 
29          * @param tableUid the table name uid 
30          * @param rowUid the row uid 
31          */
32         public LockNotExistsException(final String tableUid, final String rowUid) {
33                 super(MessageKeyEnum.LCK_000002.toString(), tableUid, rowUid);
34         }
35
36         /**
37          * Create a LockNotExistsException.
38          * 
39          * @param throwable the cause
40          * @param tableUid the table name uid 
41          * @param rowUid the row uid 
42          */
43         public LockNotExistsException(final Throwable throwable, final String tableUid, final String rowUid) {
44                 super(MessageKeyEnum.LCK_000002.toString(),throwable, tableUid, rowUid);
45         }
46
47
48 }