KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > jahia > services > cache > JMSConnectionException


1 /*
2  * ____.
3  * __/\ ______| |__/\. _______
4  * __ .____| | \ | +----+ \
5  * _______| /--| | | - \ _ | : - \_________
6  * \\______: :---| : : | : | \________>
7  * |__\---\_____________:______: :____|____:_____\
8  * /_____|
9  *
10  * . . . i n j a h i a w e t r u s t . . .
11  *
12  *
13  *
14  * ----- BEGIN LICENSE BLOCK -----
15  * Version: JCSL 1.0
16  *
17  * The contents of this file are subject to the Jahia Community Source License
18  * 1.0 or later (the "License"); you may not use this file except in
19  * compliance with the License. You may obtain a copy of the License at
20  * http://www.jahia.org/license
21  *
22  * Software distributed under the License is distributed on an "AS IS" basis,
23  * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
24  * for the rights, obligations and limitations governing use of the contents
25  * of the file. The Original and Upgraded Code is the Jahia CMS and Portal
26  * Server. The developer of the Original and Upgraded Code is JAHIA Ltd. JAHIA
27  * Ltd. owns the copyrights in the portions it created. All Rights Reserved.
28  *
29  * The Developer of the Shared Modifications is Jahia Solution Sarl.
30  * Portions created by the Initial Developer are Copyright (C) 2002 by the
31  * Initial Developer. All Rights Reserved.
32  *
33  * Contributor(s):
34  * 08-SEP-2003, Jahia Solutions Sarl, Fulco Houkes : Initial version
35  *
36  * ----- END LICENSE BLOCK -----
37  */

38
39 package org.jahia.services.cache;
40
41 import org.jahia.exceptions.JahiaException;
42
43
44 /** This exception is thrown when a JMS connection failed.
45  *
46  * @author Fulco Houkes, Copyright (c) 2003 by Jahia Ltd.
47  * @version 1.0
48  * @since Jahia 4.0
49  */

50 class JMSConnectionException extends JahiaException {
51
52     /** Instanciates a <code>JMSConnectionException</code> exception with
53      * the specified <code>message</code>.
54      *
55      * @param message the message associated to the exception
56      */

57     public JMSConnectionException (String JavaDoc message) {
58         super ("JMS Connection error", message, JahiaException.SERVICE_ERROR,
59                 JahiaException.CRITICAL_SEVERITY, null);
60     }
61
62     /** Instanciates a <code>JMSConnectionException<code> exception with
63      * the specified detail <code>message</code> and the throwable <code>t</code>
64      * root cause.
65      *
66      * @param message the exception message
67      * @param t the root cause exception
68      */

69     public JMSConnectionException (String JavaDoc message, Throwable JavaDoc t) {
70         super ("JMS Connection error", message, JahiaException.SERVICE_ERROR,
71                 JahiaException.CRITICAL_SEVERITY, t);
72     }
73
74 }
Popular Tags