org.mockejb
Class MockEjbSystemException

java.lang.Object
  extended byjava.lang.Throwable
      extended byjava.lang.Exception
          extended byjava.lang.RuntimeException
              extended byorg.mockejb.MockEjbSystemException
All Implemented Interfaces:
java.io.Serializable

public class MockEjbSystemException
extends java.lang.RuntimeException

Indicates system error in MockEJB framework. This is not the same with EJB system exception which can be any RuntimeException. MockEjbSystemException signifies the failure in one of the MockEJB classes. Support exception chaining for 1.3 users just in case.

Author:
Alexander Ananiev
See Also:
Serialized Form

Constructor Summary
MockEjbSystemException(java.lang.String message)
           
MockEjbSystemException(java.lang.String message, java.lang.Throwable cause)
          Creates a new instance of MockEjbSystemException.
MockEjbSystemException(java.lang.Throwable cause)
           
 
Method Summary
 java.lang.Throwable getCause()
          Returns the cause of this throwable or null if the cause is nonexistent or unknown.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, 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

MockEjbSystemException

public MockEjbSystemException(java.lang.String message,
                              java.lang.Throwable cause)
Creates a new instance of MockEjbSystemException. Appends the error stack of the cause to the message to remain 1.3 compliant.

Parameters:
message - error message
cause - cause of the exception

MockEjbSystemException

public MockEjbSystemException(java.lang.String message)

MockEjbSystemException

public MockEjbSystemException(java.lang.Throwable cause)
Method Detail

getCause

public java.lang.Throwable getCause()
Returns the cause of this throwable or null if the cause is nonexistent or unknown.

Returns:
the cause of this throwable or null if the cause is nonexistent or unknown