org.mockejb.interceptor
Class AspectException

java.lang.Object
  extended byjava.lang.Throwable
      extended byjava.lang.Exception
          extended byjava.lang.RuntimeException
              extended byorg.mockejb.interceptor.AspectException
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
PointcutException

public class AspectException
extends java.lang.RuntimeException

General-level exception used for various aspect/interceptor system exceptions. Support exception chaining for 1.3 users just in case.

Author:
Alexander Ananiev
See Also:
Serialized Form

Constructor Summary
AspectException(java.lang.String message)
           
AspectException(java.lang.String message, java.lang.Throwable cause)
          Creates a new instance of AspectException.
AspectException(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

AspectException

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

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

AspectException

public AspectException(java.lang.Throwable cause)

AspectException

public AspectException(java.lang.String message)
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