types
Class ErrorHandler.Trivial

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

public static class ErrorHandler.Trivial
extends Object
implements ErrorHandler

An error handler that handles nothing.


Nested Class Summary
 
Nested classes/interfaces inherited from interface types.ErrorHandler
ErrorHandler.Lister, ErrorHandler.StdErr, ErrorHandler.Trivial
 
Constructor Summary
ErrorHandler.Trivial()
           
 
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
 

Constructor Detail

ErrorHandler.Trivial

public ErrorHandler.Trivial()
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.