KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > java > lang > SecurityException


1 /*
2  * @(#)SecurityException.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 package java.lang;
8
9 /**
10  * Thrown by the security manager to indicate a security violation.
11  *
12  * @author unascribed
13  * @version 1.16, 12/19/03
14  * @see java.lang.SecurityManager
15  * @since JDK1.0
16  */

17 public class SecurityException extends RuntimeException JavaDoc {
18
19     private static final long serialVersionUID = 6878364983674394167L;
20
21     /**
22      * Constructs a <code>SecurityException</code> with no detail message.
23      */

24     public SecurityException() {
25     super();
26     }
27
28     /**
29      * Constructs a <code>SecurityException</code> with the specified
30      * detail message.
31      *
32      * @param s the detail message.
33      */

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

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

64     public SecurityException(Throwable JavaDoc cause) {
65     super(cause);
66     }
67 }
68
Popular Tags