learningTool
Class LearningTool.LTErrorHandler

java.lang.Object
  extended by learningTool.LearningTool.LTErrorHandler
All Implemented Interfaces:
ErrorHandler
Enclosing class:
LearningTool

public class LearningTool.LTErrorHandler
extends Object
implements ErrorHandler


Nested Class Summary
 
Nested classes/interfaces inherited from interface types.ErrorHandler
ErrorHandler.Lister, ErrorHandler.StdErr, ErrorHandler.Trivial
 
Constructor Summary
LearningTool.LTErrorHandler(LearningToolGUI lt)
           
 
Method Summary
 boolean anyErrors()
           
 boolean handleError(GUIFileException error)
          Handle the error.
 int totalErrors()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LearningTool.LTErrorHandler

public LearningTool.LTErrorHandler(LearningToolGUI lt)
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.

totalErrors

public int totalErrors()