aicas logoJamaica 6.1 release 1

java.lang
Class SecurityException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by java.lang.SecurityException
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
AccessControlException, RMISecurityException

public class SecurityException
extends RuntimeException

SecurityException is a runtime exception thrown by a security manager if a requested permission is not granted.

Since:
1.0
See Also:
Serialized Form

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

SecurityException

public SecurityException()
Constructor for a SecurityException with no detail message.


SecurityException

public SecurityException(String s)
Constructor for a SecurityException with given detail message.

ensures

    (s != null IMPLIES getMessage().equals(s));
 

Parameters:
s - the detail message.

SecurityException

public SecurityException(Throwable ex)
Constructor for a SecurityException with given cause and detail message set to ex.toString().

ensures

    (ex != null IMPLIES getCause() == ex && getMessage().equals(ex.toString()));
 

Parameters:
ex - the cause why this exception was created or null if none.
Since:
1.5

SecurityException

public SecurityException(String s,
                         Throwable ex)
Constructor for a SecurityException with given detail message and cause.

ensures

    (s  != null IMPLIES getMessage().equals(s),
     ex != null IMPLIES getCause() == ex);
 

Parameters:
s - the detail message.
ex - the cause why this exception was created or null if none.
Since:
1.5

aicas logoJamaica 6.1 release 1

aicas GmbH, Karlsruhe, Germany —www.aicas.com
Copyright © 2001-2012 aicas GmbH. All Rights Reserved.