com.caucho.security
Class SecurityContextException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by com.caucho.security.SecurityContextException
All Implemented Interfaces:
ExceptionWrapper, java.io.Serializable

public class SecurityContextException
extends java.lang.RuntimeException
implements ExceptionWrapper, java.io.Serializable

Security exception for finding the current security context.

See Also:
Serialized Form

Constructor Summary
SecurityContextException()
          Null for serializable.
SecurityContextException(java.lang.String msg)
          Create a basic SecurityContextException with a message.
SecurityContextException(java.lang.String message, java.lang.Throwable rootCause)
          Create a SecurityContextException wrapping a root exception.
SecurityContextException(java.lang.Throwable rootCause)
          Create a SecurityContextException wrapping a root exception.
 
Method Summary
 java.lang.String getMessage()
          Returns the appropriate exception message.
 java.lang.Throwable getRootCause()
          Returns the root exception if it exists.
 java.lang.String toString()
          Print the exception as a string.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SecurityContextException

public SecurityContextException()
Null for serializable.


SecurityContextException

public SecurityContextException(java.lang.String msg)
Create a basic SecurityContextException with a message.

Parameters:
msg - the exception message.

SecurityContextException

public SecurityContextException(java.lang.Throwable rootCause)
Create a SecurityContextException wrapping a root exception.

Parameters:
rootCause - the underlying wrapped exception.

SecurityContextException

public SecurityContextException(java.lang.String message,
                                java.lang.Throwable rootCause)
Create a SecurityContextException wrapping a root exception.

Parameters:
message - the message to use.
rootCause - the underlying wrapped exception.
Method Detail

getRootCause

public java.lang.Throwable getRootCause()
Returns the root exception if it exists.

Specified by:
getRootCause in interface ExceptionWrapper
Returns:
the underlying wrapped exception.

getMessage

public java.lang.String getMessage()
Returns the appropriate exception message.

Overrides:
getMessage in class java.lang.Throwable

toString

public java.lang.String toString()
Print the exception as a string.

Overrides:
toString in class java.lang.Throwable