KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > ejbca > core > EjbcaException


1 /*************************************************************************
2  * *
3  * EJBCA: The OpenSource Certificate Authority *
4  * *
5  * This software 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 any later version. *
9  * *
10  * See terms of license at gnu.org. *
11  * *
12  *************************************************************************/

13  
14 package org.ejbca.core;
15
16 /**
17  * Base for all specific application exceptions thrown by EJBCA. Can be used to catch any
18  * non-crititcal application exceptions thay may be possible to handle: <code> try { . . . } catch
19  * (EjbcaException e) { error("Error: blahblah", e); ... }</code>
20  *
21  * @version $Id: EjbcaException.java,v 1.1 2006/01/17 20:30:05 anatom Exp $
22  */

23 public class EjbcaException extends Exception JavaDoc {
24     /**
25      * Constructor used to create exception without an errormessage. Calls the same constructor in
26      * baseclass <code>Exception</code>.
27      */

28     public EjbcaException() {
29         super();
30     }
31     /**
32      * Constructor used to create exception with an errormessage. Calls the same constructor in
33      * baseclass <code>Exception</code>.
34      *
35      * @param message Human redable error message, can not be NULL.
36      */

37     public EjbcaException(String JavaDoc message) {
38         super(message);
39     }
40
41     /**
42      * Constructor used to create exception with an embedded exception. Calls the same constructor
43      * in baseclass <code>Exception</code>.
44      *
45      * @param exception exception to be embedded.
46      */

47     public EjbcaException(Exception JavaDoc exception) {
48         super(exception);
49     }
50 }
51
Popular Tags