org.enhydra.shark.api.internal.security
Class SecurityException

java.lang.Object
  extended byjava.lang.Throwable
      extended byjava.lang.Exception
          extended byorg.enhydra.shark.api.RootException
              extended byorg.enhydra.shark.api.internal.security.SecurityException
All Implemented Interfaces:
java.io.Serializable

public class SecurityException
extends RootException

Class SecurityException is raised by SecurityManager when it finds out that some method is not supposed to be executed by some user.

Author:
Sasa Bojanic, Vladimir Puskas
See Also:
Serialized Form

Constructor Summary
SecurityException(java.lang.String message)
          Constructs a new exception with the specified detail message.
SecurityException(java.lang.String message, java.lang.Throwable cause)
          Constructs a new exception with the specified detail message and cause.
SecurityException(java.lang.Throwable cause)
          Constructs a new exception with cause for throwable.
 
Methods inherited from class org.enhydra.shark.api.RootException
getCause, initCause, printStackTrace, printStackTrace, printStackTrace
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getLocalizedMessage, getMessage, getStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SecurityException

public SecurityException(java.lang.String message)
Constructs a new exception with the specified detail message.

Parameters:
message - the detail message for new SecurityException.

SecurityException

public SecurityException(java.lang.Throwable cause)
Constructs a new exception with cause for throwable. Message is created by super constructor (java.lang.Exception), if cause isn't null - cause.toString().

Parameters:
cause - Throwable which caused this SecurityException.

SecurityException

public SecurityException(java.lang.String message,
                         java.lang.Throwable cause)
Constructs a new exception with the specified detail message and cause.

Parameters:
message - the detail message for new SecurityException.
cause - Throwable which caused this SecurityException.