Salome HOME
BusinessException is added as base class for ...Exception.
[tools/siman.git] / Workspace / Siman-Common / src / org / splat / exception / BusinessException.java
1 /*****************************************************************************
2  * Company         EURIWARE
3  * Application     SIMAN
4  * File            $Id$ 
5  * Creation date   14.11.2012
6  * @author         Author: Maria KRUCHININA
7  * @version        Revision: 
8  *****************************************************************************/
9
10 package org.splat.exception; 
11
12 /**
13  * Define a Business exception send by service. 
14  * This class is send by services when a business error occurred (functionnal error) 
15  * 
16  * @author Maria KRUCHININA
17  *
18  */
19 public class BusinessException extends AbstractException {
20
21         /**
22          * serial version id.
23          */
24         private static final long serialVersionUID = 1L;
25
26         /**
27          * Default constructor.
28          * @see ServiceException#ServiceException()
29          */
30         public BusinessException() {
31                 super();
32         }
33
34
35         /**
36          * Constructor with a throwable param.
37          * @param throwable the original throwable
38          * @see ServiceException#ServiceException(Throwable)
39          */
40         public BusinessException(final Throwable throwable) {
41                 super(throwable);
42         }
43
44         /**
45          * Constructor with a String param and a throwable param.
46          * @param message the error message
47          * @param throwable the original throwable 
48          * @see ServiceException#ServiceException(String, Throwable)
49          */
50         public BusinessException (final String message,final Throwable throwable) {
51                 super(message,throwable);
52         }
53         
54         /**
55          * Build a BusinessException with message, user message key, and throwable.
56          * @param messageKey the User Interface Message Key
57          * @param throwable the original exception
58          * @param context the execution context
59          */
60         public BusinessException(final String messageKey,final Throwable throwable,final Object... context) {
61                 super(messageKey,throwable,context);
62
63
64         }
65
66         /**
67          * Build a BusinessException with message, user message key and context. 
68          * @param messageKey the User Interface Message Key
69          * @param context the execution context
70          */
71         public BusinessException(final String messageKey,final Object... context) {
72                 super(messageKey,context);
73         }
74 }