textbender.g.lang
Class Catcher0<S>

java.lang.Object
  extended by 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.


Nested Class Summary
 
Nested classes/interfaces inherited from interface Catcher
Catcher.X
 
Constructor Summary
Catcher0()
           
 
Method Summary
 void catchError(S source, Error r)
          Immediately re-throws the error.
 void catchException(S source, Exception x)
          Immediately re-throws the exception.
static
<S> Catcher0<S>
i()
          A common instance of Catcher0.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Catcher0

public Catcher0()
Method Detail

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