|
![]() |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
java.lang.SecurityException
public class SecurityException
SecurityException is a runtime exception thrown by a security manager if a requested permission is not granted.
Constructor Summary | |
---|---|
SecurityException()
Constructor for a SecurityException with no detail message. |
|
SecurityException(String s)
Constructor for a SecurityException with given detail message. |
|
SecurityException(String s,
Throwable ex)
Constructor for a SecurityException with given detail message and cause. |
|
SecurityException(Throwable ex)
Constructor for a SecurityException with given cause and detail message set to ex.toString(). |
Method Summary |
---|
Methods inherited from class java.lang.Throwable |
---|
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public SecurityException()
public SecurityException(String s)
ensures
(s != null IMPLIES getMessage().equals(s));
s
- the detail message.public SecurityException(Throwable ex)
ensures
(ex != null IMPLIES getCause() == ex && getMessage().equals(ex.toString()));
ex
- the cause why this exception was created or null if
none.public SecurityException(String s, Throwable ex)
ensures
(s != null IMPLIES getMessage().equals(s), ex != null IMPLIES getCause() == ex);
s
- the detail message.ex
- the cause why this exception was created or null if
none.
|
![]() |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |