net.sf.zig_project.gpl.common.io
Class ExceptionRegurgitator
java.lang.Object
net.sf.zig_project.gpl.common.io.ExceptionRegurgitator
- All Implemented Interfaces:
- IOExceptionHandler
- public class ExceptionRegurgitator
- extends Object
- implements IOExceptionHandler
Exception Regurgitators will silently swallow a single exception
generated on one thread, so that they might be re-thrown by another.
If more an attempt is made to swallow more than a single exception,
the first exception is considered to be the source, and all others
are ignored until the first has been rethrown.
- Version:
- September 5, 2004
- Author:
- Frank Ziglar
Method Summary |
void |
burp()
"Burps" any exception out, if one has been
swallowed. |
void |
handle(IOException e)
Swallows a single exception, either by saving it for another
thread, or by ignoring it in favor of rethrowing another
exception. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ExceptionRegurgitator
public ExceptionRegurgitator()
handle
public void handle(IOException e)
- Swallows a single exception, either by saving it for another
thread, or by ignoring it in favor of rethrowing another
exception.
- Specified by:
handle
in interface IOExceptionHandler
burp
public void burp()
throws IOException
- "Burps" any exception out, if one has been
swallowed.
- Throws:
IOException