KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > objectweb > petals > binding > xquarebc > XQuareBCException


1 /**
2  * PETALS - PETALS Services Platform.
3  * Copyright (c) 2005 EBM Websourcing, http://www.ebmwebsourcing.com/
4  *
5  * This library is free software; you can redistribute it and/or
6  * modify it under the terms of the GNU Lesser General Public
7  * License as published by the Free Software Foundation; either
8  * version 2.1 of the License, or (at your option) any later version.
9  * This library is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12  * Lesser General Public License for more details.
13  *
14  * You should have received a copy of the GNU Lesser General Public
15  * License along with this library; if not, write to the Free Software
16  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
17  *
18  * -------------------------------------------------------------------------
19  * $Id : $
20  * -------------------------------------------------------------------------
21  */

22
23 package org.objectweb.petals.binding.xquarebc;
24
25 /**
26  * Dedicated exception for XQuare BC-specific errors.
27  *
28  * @version $Rev: 250 $Date: {date}
29  * @since Petals 1.0
30  * @author Marc Dutoo - Open Wide
31  *
32  */

33 public class XQuareBCException extends Exception JavaDoc {
34
35     private static final long serialVersionUID = 1L;
36
37     protected String JavaDoc messageKey;
38
39     /**
40      * @param message
41      * the raw message explaining the cause of the error
42      */

43     public XQuareBCException(String JavaDoc message) {
44         super(message);
45     }
46
47     /**
48      * @param message
49      * the raw message explaining the cause of the error
50      * @param messageKey
51      * key matching a message to display for internationalization
52      */

53     public XQuareBCException(String JavaDoc message, String JavaDoc messageKey) {
54         super(message);
55         this.messageKey = messageKey;
56     }
57
58     /**
59      * @param message
60      * the raw message explaining the cause of the error
61      * @param e
62      * the exception
63      */

64     public XQuareBCException(String JavaDoc message, Throwable JavaDoc e) {
65         super(message, e);
66     }
67
68     /**
69      * @param message
70      * the raw message explaining the cause of the error
71      * @param e
72      * the exception
73      * @param messageKey
74      * key matching a message to display for internationalization
75      */

76     public XQuareBCException(String JavaDoc message, Throwable JavaDoc e,
77         String JavaDoc messageKey) {
78         super(message, e);
79         this.messageKey = messageKey;
80     }
81
82     /**
83      * @param e
84      * the exception
85      */

86     public XQuareBCException(Throwable JavaDoc e) {
87         super(e);
88     }
89
90 }
91
Popular Tags