java.lang
Class SecurityException

java.lang.Object
  extended byjava.lang.Throwable
      extended byjava.lang.Exception
          extended byjava.lang.RuntimeException
              extended byjava.lang.SecurityException
All Implemented Interfaces:
Serializable

public class SecurityException
extends RuntimeException

This runtime exception is thrown when a security manager check fails.

See Also:
Serialized Form

Constructor Summary
SecurityException()
          Constructs a new instance of this class with its walkback filled in.
SecurityException(java.lang.String detailMessage)
          Constructs a new instance of this class with its walkback and message filled in.
SecurityException(java.lang.String message, Throwable cause)
          Constructs a new instance with a message and cause.
SecurityException(Throwable cause)
          Constructs a new instance with a cause.
 
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
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SecurityException

public SecurityException()
Constructs a new instance of this class with its walkback filled in.


SecurityException

public SecurityException(java.lang.String detailMessage)
Constructs a new instance of this class with its walkback and message filled in.

Parameters:
detailMessage - String The detail message for the exception.

SecurityException

public SecurityException(java.lang.String message,
                         Throwable cause)

Constructs a new instance with a message and cause.

Parameters:
message - The message to assign to this exception.
cause - The optional cause of this exception; may be null.
Since:
1.5

SecurityException

public SecurityException(Throwable cause)

Constructs a new instance with a cause.

Parameters:
cause - The optional cause of this exception; may be null.
Since:
1.5