org.mockejb.interceptor
Class AspectException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.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
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 |
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 messagecause
- cause of the exception
AspectException
public AspectException(java.lang.Throwable cause)
AspectException
public AspectException(java.lang.String message)
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