codesimian
Class ThrowDoCatch

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by codesimian.ThrowDoCatch
All Implemented Interfaces:
java.io.Serializable

public class ThrowDoCatch
extends java.lang.RuntimeException

just before this object is thrown (by java keyword throw), you must set its action (in the constructor) so after you handle the error, you can continue approximately what you were doing just before you threw this by executing that ACTION. Or it can be any action to do after handling the error.

See Also:
Serialized Form

Constructor Summary
ThrowDoCatch(CS action)
           
 
Method Summary
 void doAction()
           
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, 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

ThrowDoCatch

public ThrowDoCatch(CS action)
Method Detail

doAction

public void doAction()