01: /*************************************************************************
02: * *
03: * EJBCA: The OpenSource Certificate Authority *
04: * *
05: * This software is free software; you can redistribute it and/or *
06: * modify it under the terms of the GNU Lesser General Public *
07: * License as published by the Free Software Foundation; either *
08: * version 2.1 of the License, or any later version. *
09: * *
10: * See terms of license at gnu.org. *
11: * *
12: *************************************************************************/package org.ejbca.core;
13:
14: /**
15: * Base for all specific application exceptions thrown by EJBCA. Can be used to catch any
16: * non-crititcal application exceptions thay may be possible to handle: <code> try { . . . } catch
17: * (EjbcaException e) { error("Error: blahblah", e); ... }</code>
18: *
19: * @version $Id: EjbcaException.java,v 1.1 2006/01/17 20:30:05 anatom Exp $
20: */
21: public class EjbcaException extends Exception {
22: /**
23: * Constructor used to create exception without an errormessage. Calls the same constructor in
24: * baseclass <code>Exception</code>.
25: */
26: public EjbcaException() {
27: super ();
28: }
29:
30: /**
31: * Constructor used to create exception with an errormessage. Calls the same constructor in
32: * baseclass <code>Exception</code>.
33: *
34: * @param message Human redable error message, can not be NULL.
35: */
36: public EjbcaException(String message) {
37: super (message);
38: }
39:
40: /**
41: * Constructor used to create exception with an embedded exception. Calls the same constructor
42: * in baseclass <code>Exception</code>.
43: *
44: * @param exception exception to be embedded.
45: */
46: public EjbcaException(Exception exception) {
47: super(exception);
48: }
49: }
|