net.refractions.udig.project.command
Interface ErrorHandler


public interface ErrorHandler

MapCommand Managers have error handles registered that are notified when a command throws an exception. Error handlers know what to do with the exception.

An example is a Transaction Error handler which

Since:
0.3
Author:
jeichar

Method Summary
 void handleError(Command command, java.lang.Throwable e)
          Handles an error that occurs during the execution of a command.
 void handleRollbackError(UndoableCommand command, java.lang.Throwable e)
          Handles an error that occurs during the rollback of a undoable command.
 

Method Detail

handleError

void handleError(Command command,
                 java.lang.Throwable e)
Handles an error that occurs during the execution of a command.

Parameters:
command - The command which raised the excpetion.
e - the exception raised.
See Also:
MapCommand, API allow this to throw an exception?

handleRollbackError

void handleRollbackError(UndoableCommand command,
                         java.lang.Throwable e)
Handles an error that occurs during the rollback of a undoable command.

Parameters:
command - The command which raised the excpetion.
e - the exception raised.
See Also:
UndoableCommand, API allow this to throw an exception?