KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > java > security > KeyException


1 /*
2  * @(#)KeyException.java 1.19 03/12/19
3  *
4  * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
5  * SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
6  */

7
8 package java.security;
9
10 /**
11  * This is the basic key exception.
12  *
13  * @see Key
14  * @see InvalidKeyException
15  * @see KeyManagementException
16  *
17  * @version 1.19 03/12/19
18  * @author Benjamin Renaud
19  */

20
21 public class KeyException extends GeneralSecurityException JavaDoc {
22
23     private static final long serialVersionUID = -7483676942812432108L;
24
25     /**
26      * Constructs a KeyException with no detail message. A detail
27      * message is a String that describes this particular exception.
28      */

29     public KeyException() {
30     super();
31     }
32
33     /**
34      * Constructs a KeyException with the specified detail message.
35      * A detail message is a String that describes this particular
36      * exception.
37      *
38      * @param msg the detail message.
39      */

40     public KeyException(String JavaDoc msg) {
41     super(msg);
42     }
43
44     /**
45      * Creates a <code>KeyException</code> with the specified
46      * detail message and cause.
47      *
48      * @param message the detail message (which is saved for later retrieval
49      * by the {@link #getMessage()} method).
50      * @param cause the cause (which is saved for later retrieval by the
51      * {@link #getCause()} method). (A <tt>null</tt> value is permitted,
52      * and indicates that the cause is nonexistent or unknown.)
53      * @since 1.5
54      */

55     public KeyException(String JavaDoc message, Throwable JavaDoc cause) {
56         super(message, cause);
57     }
58
59     /**
60      * Creates a <code>KeyException</code> with the specified cause
61      * and a detail message of <tt>(cause==null ? null : cause.toString())</tt>
62      * (which typically contains the class and detail message of
63      * <tt>cause</tt>).
64      *
65      * @param cause the cause (which is saved for later retrieval by the
66      * {@link #getCause()} method). (A <tt>null</tt> value is permitted,
67      * and indicates that the cause is nonexistent or unknown.)
68      * @since 1.5
69      */

70     public KeyException(Throwable JavaDoc cause) {
71         super(cause);
72     }
73 }
74
Popular Tags