org.activemath.omdocjdom.slumb
Class ErrorReporter

java.lang.Object
  extended by org.activemath.omdocjdom.slumb.ErrorReporter

public class ErrorReporter
extends Object


Constructor Summary
ErrorReporter(SlumbIndex index, List accumulator)
           
ErrorReporter(SlumbIndex index, List accumulator, int maxErrors)
           
 
Method Summary
static ErrorReporter getCurrentOrDumbReporter()
          Is sure to return a non-null error-reporter though it may be only printing to console.
static ErrorReporter getCurrentReporter()
           
static boolean hasCurrentReporter()
           
 void reportError(OMDocFile file, Throwable ex)
           
 void reportError(String message, Throwable ex, Object possibleLoc)
           
 void reportError(Throwable ex, String collectionId)
           
static void setCurrentReporter(ErrorReporter rep)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ErrorReporter

public ErrorReporter(SlumbIndex index,
                     List accumulator)

ErrorReporter

public ErrorReporter(SlumbIndex index,
                     List accumulator,
                     int maxErrors)
Method Detail

hasCurrentReporter

public static boolean hasCurrentReporter()

getCurrentReporter

public static ErrorReporter getCurrentReporter()

getCurrentOrDumbReporter

public static ErrorReporter getCurrentOrDumbReporter()
Is sure to return a non-null error-reporter though it may be only printing to console.


setCurrentReporter

public static void setCurrentReporter(ErrorReporter rep)

reportError

public void reportError(Throwable ex,
                        String collectionId)

reportError

public void reportError(OMDocFile file,
                        Throwable ex)

reportError

public void reportError(String message,
                        Throwable ex,
                        Object possibleLoc)