Salome HOME
a22d58ee8291642249f37ca1f41e6e76ef8a2777
[tools/siman.git] / Workspace / Siman-Common / src / org / splat / kernel / InvalidPropertyException.java
1 package org.splat.kernel;
2
3 import org.splat.exception.BusinessException;
4
5 /**
6  * Exception thrown when the property is invalid.
7  * 
8  * @author Daniel Brunier-Coulin
9  * @copyright OPEN CASCADE 2012
10  */
11
12 public class InvalidPropertyException extends BusinessException {
13
14         /**
15          * Version id for serialization.
16          */
17         private static final long serialVersionUID = -3988379180445723963L;
18
19         /**
20          * Create a InvalidPropertyException.
21          * 
22          * @param message
23          *            the error message.
24          */
25         public InvalidPropertyException(final String message) {
26                 super(message);
27         }
28
29         /**
30          * Create a InvalidPropertyException.
31          * 
32          * @param messageKey
33          *            error message key
34          * @param context
35          *            parameters
36          */
37         public InvalidPropertyException(final String messageKey,
38                         final Object... context) {
39                 super(messageKey, context);
40         }
41
42         /**
43          * Create a InvalidPropertyException.
44          * 
45          * @param messageKey
46          *            error message key
47          * @param throwable
48          *            the original exception
49          * @param context
50          *            parameters
51          */
52         public InvalidPropertyException(final String messageKey,
53                         final Throwable throwable, final Object... context) {
54                 super(messageKey, throwable, context);
55         }
56 }