|
|||||||||
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
The security manager will throw this exception to indicate a security violation. This can occur any time an operation is attempted which is deemed unsafe by the current security policies.
SecurityManager
,
Serialized FormConstructor Summary | |
---|---|
SecurityException()
Create an exception without a message. |
|
SecurityException(String s)
Create an exception with a message. |
|
SecurityException(String message,
Throwable cause)
Constructs a SecurityException using
the specified error message, which should give further details
as to the reason for this exception. |
|
SecurityException(Throwable cause)
Constructs a SecurityException using
the specified cause Throwable , which may be used
to provide additional history, with regards to the root of the
problem. |
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)
s
- the messagepublic SecurityException(String message, Throwable cause)
Constructs a SecurityException
using
the specified error message, which should give further details
as to the reason for this exception. The specified cause
Throwable
may be used to provide additional history,
with regards to the root of the problem. It is perfectly valid
for this to be null, if the cause of the problem is unknown.
Note: the detail message from the cause is not automatically incorporated into the resulting detail message of this exception.
message
- the detail message, which should give the reason for
this exception being thrown.cause
- the cause of this exception, or null if the cause
is unknown.public SecurityException(Throwable cause)
Constructs a SecurityException
using
the specified cause Throwable
, which may be used
to provide additional history, with regards to the root of the
problem. It is perfectly valid for this to be null, if the
cause of the problem is unknown.
The detail message is automatically constructed from the detail message of the supplied causal exception. If the cause is null, then the detail message will also be null. Otherwise, the detail message of this exception will be that of the causal exception. This makes this constructor very useful for simply wrapping another exception.
cause
- the cause of this exception, or null if the cause
is unknown.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |