|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.codehaus.aspectwerkz.exception.WrappedRuntimeException
public class WrappedRuntimeException
Wrappes the original throwable in a RuntimeException.
Constructor Summary | |
---|---|
WrappedRuntimeException(String message,
Throwable throwable)
Creates a new WrappedRuntimeException. |
|
WrappedRuntimeException(Throwable throwable)
Creates a new WrappedRuntimeException. |
Method Summary | |
---|---|
Throwable |
getCause()
Returns the original exception. |
String |
getLocalizedMessage()
Returns the localized description of the wrapped exception in order to produce a locale-specific message. |
String |
getMessage()
Returns the error message string of the wrapped exception. |
void |
printStackTrace()
Prints the wrapped exception A its backtrace to the standard error stream. |
void |
printStackTrace(PrintStream s)
Prints the wrapped excpetion A its backtrace to the specified print stream. |
void |
printStackTrace(PrintWriter s)
Prints the wrapped exception A its backtrace to the specified print writer. |
String |
toString()
Returns a short description of the wrapped exception. |
Methods inherited from class java.lang.Throwable |
---|
fillInStackTrace, getStackTrace, initCause, setStackTrace |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public WrappedRuntimeException(Throwable throwable)
throwable
- the non-RuntimeException to be wrapped.public WrappedRuntimeException(String message, Throwable throwable)
message
- throwable
- the non-RuntimeException to be wrapped.Method Detail |
---|
public String getMessage()
getMessage
in class Throwable
public String getLocalizedMessage()
getLocalizedMessage
in class Throwable
public Throwable getCause()
getCause
in class Throwable
public String toString()
toString
in class Throwable
public void printStackTrace()
printStackTrace
in class Throwable
public void printStackTrace(PrintStream s)
printStackTrace
in class Throwable
s
- the print streampublic void printStackTrace(PrintWriter s)
printStackTrace
in class Throwable
s
- the print writer
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |