textbender.g.lang
Class Catcher0<S>
java.lang.Object
Catcher0<S>
- All Implemented Interfaces:
- Catcher<S>
- Direct Known Subclasses:
- PropertyChangeListenerR.DispatchCatcher, PropertyChangeListenerR.DispatchCatcherN
public class Catcher0<S>
- extends Object
- implements Catcher<S>
Null implementation of a catcher, it re-throws all errors and exceptions.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Catcher0
public Catcher0()
i
public static <S> Catcher0<S> i()
- A common instance of Catcher0.
catchError
@ThreadSafe
public void catchError(S source,
Error r)
- Immediately re-throws the error.
Subclasses that override this method would normally also re-throw it
(or call super.catchError) taking care not to drop it first.
- Specified by:
catchError
in interface Catcher<S>
- Parameters:
source
- logical source of the error
catchException
@ThreadSafe
public void catchException(S source,
Exception x)
- Immediately re-throws the exception.
If it is not a RuntimeException, then it is first wrapped as an
UndeclaredThrowableException.
- Specified by:
catchException
in interface Catcher<S>
- Parameters:
source
- logical source of the exception