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.model.ca;
13:
14: import org.ejbca.core.EjbcaException;
15:
16: /**
17: * Error due to malformed key. The cause of failure can be related to illegal key length etc.
18: *
19: * @version $Id: IllegalKeyException.java,v 1.1 2006/01/17 20:30:56 anatom Exp $
20: */
21: public class IllegalKeyException extends EjbcaException {
22: /**
23: * Constructor used to create exception with an errormessage. Calls the same constructor in
24: * baseclass <code>Exception</code>.
25: *
26: * @param message Human redable error message, can not be NULL.
27: */
28: public IllegalKeyException(String message) {
29: super (message);
30: }
31:
32: /**
33: * Constructs an instance of <code>IllegalKeyException</code> with the specified cause.
34: * @param msg the detail message.
35: */
36: public IllegalKeyException(Exception e) {
37: super(e);
38: }
39: }
|