/* * ErrorAction.cpp * * Created on: Jan 5, 2010 * Author: crueger */ #include #include "Actions/ErrorAction.hpp" #include "log.hpp" #include "verbose.hpp" using namespace std; ErrorAction::ErrorAction(string _name,const char * _errorMsg,bool _doRegister) : Action(_name,_doRegister), errorMsg(_errorMsg) { } ErrorAction::~ErrorAction() { } void ErrorAction::call() { Log() << Verbose(0) << errorMsg << endl; } void ErrorAction::undo() { } bool ErrorAction::canUndo(){ return false; }