KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > ejbca > core > model > ca > IllegalKeyException


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.model.ca;
15
16 import org.ejbca.core.EjbcaException;
17
18
19
20 /**
21  * Error due to malformed key. The cause of failure can be related to illegal key length etc.
22  *
23  * @version $Id: IllegalKeyException.java,v 1.1 2006/01/17 20:30:56 anatom Exp $
24  */

25 public class IllegalKeyException extends EjbcaException {
26     /**
27      * Constructor used to create exception with an errormessage. Calls the same constructor in
28      * baseclass <code>Exception</code>.
29      *
30      * @param message Human redable error message, can not be NULL.
31      */

32     public IllegalKeyException(String JavaDoc message) {
33         super(message);
34     }
35     /**
36      * Constructs an instance of <code>IllegalKeyException</code> with the specified cause.
37      * @param msg the detail message.
38      */

39     public IllegalKeyException(Exception JavaDoc e) {
40         super(e);
41     }
42 }
43
Popular Tags