KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > java > security > KeyStoreException


1 /*
2  * @(#)KeyStoreException.java 1.12 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 generic KeyStore exception.
12  *
13  * @author Jan Luehe
14  *
15  * @version 1.12, 12/19/03
16  *
17  * @since 1.2
18  */

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

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

40    public KeyStoreException(String JavaDoc msg) {
41        super(msg);
42     }
43
44     /**
45      * Creates a <code>KeyStoreException</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 KeyStoreException(String JavaDoc message, Throwable JavaDoc cause) {
56         super(message, cause);
57     }
58
59     /**
60      * Creates a <code>KeyStoreException</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 KeyStoreException(Throwable JavaDoc cause) {
71         super(cause);
72     }
73 }
74
Popular Tags