KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > enhydra > shark > api > internal > security > SecurityException


1 package org.enhydra.shark.api.internal.security;
2
3 import org.enhydra.shark.api.RootException;
4
5 /**
6  * Class SecurityException is raised by SecurityManager when it finds out that
7  * some method is not supposed to be executed by some user.
8  *
9  * @author Sasa Bojanic
10  * @author Vladimir Puskas
11  */

12 public class SecurityException extends RootException {
13
14    /**
15      * Constructs a new exception with the specified detail message.
16      *
17      * @param message the detail message for new SecurityException.
18      */

19     public SecurityException(String JavaDoc message) {
20         super(message);
21     }
22
23     /**
24      * Constructs a new exception with cause for throwable.
25      * Message is created by super constructor (java.lang.Exception),
26      * if cause isn't null - cause.toString().
27      *
28      * @param cause Throwable which caused this SecurityException.
29      */

30     public SecurityException(Throwable JavaDoc cause) {
31       super(cause);
32     }
33
34     /**
35      * Constructs a new exception with the specified detail
36      * message and cause.
37      *
38      * @param message the detail message for new SecurityException.
39      * @param cause Throwable which caused this SecurityException.
40      */

41     public SecurityException(String JavaDoc message, Throwable JavaDoc cause) {
42       super(message, cause);
43     }
44 }
45
46
Popular Tags