types
Class ErrorHandler.Lister

java.lang.Object
  extended by types.ErrorHandler.Lister
All Implemented Interfaces:
ErrorHandler
Enclosing interface:
ErrorHandler

public static class ErrorHandler.Lister
extends Object
implements ErrorHandler

An error handler that just stuffs everything in a list


Nested Class Summary
 
Nested classes/interfaces inherited from interface types.ErrorHandler
ErrorHandler.Lister, ErrorHandler.StdErr, ErrorHandler.Trivial
 
Field Summary
 List<GUIFileException> errors
          A list of all errors reported to the error handler.
 
Constructor Summary
ErrorHandler.Lister()
           
 
Method Summary
 boolean anyErrors()
           
 boolean handleError(GUIFileException error)
          Handle the error.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

errors

public final List<GUIFileException> errors
A list of all errors reported to the error handler. An immutable view.

Constructor Detail

ErrorHandler.Lister

public ErrorHandler.Lister()
Method Detail

handleError

public boolean handleError(GUIFileException error)
Description copied from interface: ErrorHandler
Handle the error. It is up to the implementor what to do with the error; possibilities include printing it to the screen, adding it to a list to be retrieved later, ignoring it, etc.

Specified by:
handleError in interface ErrorHandler
Parameters:
error - The error to handle.
Returns:
true if the error was handled. Implementors may use this to be selective about which errors they handle.

anyErrors

public boolean anyErrors()
Specified by:
anyErrors in interface ErrorHandler
Returns:
true if this handler has handled any errors.