KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > java > security > GeneralSecurityException


1 /*
2  * @(#)GeneralSecurityException.java 1.16 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  * The <code>GeneralSecurityException</code> class is a generic
12  * security exception class that provides type safety for all the
13  * security-related exception classes that extend from it.
14  *
15  * @version 1.16, 03/12/19
16  * @author Jan Luehe
17  */

18
19 public class GeneralSecurityException extends Exception JavaDoc {
20
21     private static final long serialVersionUID = 894798122053539237L;
22
23     /**
24      * Constructs a GeneralSecurityException with no detail message.
25      */

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

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

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

68     public GeneralSecurityException(Throwable JavaDoc cause) {
69         super(cause);
70     }
71 }
72
Popular Tags