01: /*
02: * Created on Apr 12, 2005
03: */
04: package uk.org.ponder.util;
05:
06: /**
07: * If the supplied exception object is wrapping another (distinct, non-null
08: * exception), return that exception. Otherwise, return null.
09: * @author Antranig Basman (antranig@caret.cam.ac.uk)
10: *
11: */
12: public interface ExceptionUnwrapper {
13: /** Returns <code>false</code> if this unwrapper cannot operate (perhaps
14: * because the Class it operates on is not visible in this ClassLoader).
15: */
16: public boolean isValid();
17:
18: public Throwable unwrapException(Throwable tounwrap);
19: }
|