xxl.util
Class WrappingRuntimeException

java.lang.Object
  |
  +--java.lang.Throwable
        |
        +--java.lang.Exception
              |
              +--java.lang.RuntimeException
                    |
                    +--xxl.util.WrappingRuntimeException

public class WrappingRuntimeException
extends java.lang.RuntimeException

This Exception is useful for wrapping arbitrary Exceptions. A RuntimeException can be thrown at any place in the code and does not have to be declared via "throw" and "catch". This means that by catching a non-RuntimeException and wrapping it

See Also:
Serialized Form

Field Summary
 java.lang.Exception exception
           
 
Constructor Summary
WrappingRuntimeException(java.lang.Exception exception)
           
 
Method Summary
 java.lang.String getLocalizedMessage()
           
 java.lang.String getMessage()
           
 void printStackTrace()
           
 void printStackTrace(java.io.PrintStream s)
           
 void printStackTrace(java.io.PrintWriter s)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Throwable
fillInStackTrace
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

exception

public final java.lang.Exception exception
Constructor Detail

WrappingRuntimeException

public WrappingRuntimeException(java.lang.Exception exception)
Method Detail

getMessage

public java.lang.String getMessage()
Overrides:
getMessage in class java.lang.Throwable

getLocalizedMessage

public java.lang.String getLocalizedMessage()
Overrides:
getLocalizedMessage in class java.lang.Throwable

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Throwable

printStackTrace

public void printStackTrace()
Overrides:
printStackTrace in class java.lang.Throwable

printStackTrace

public void printStackTrace(java.io.PrintStream s)
Overrides:
printStackTrace in class java.lang.Throwable

printStackTrace

public void printStackTrace(java.io.PrintWriter s)
Overrides:
printStackTrace in class java.lang.Throwable