00001 #include "DistBossServer/ServerErrorHandler.h" 00002 #include "DistBossUtil/DimErrorMsg.h" 00003 #include <iostream> 00004 00005 ServerErrorHandler::ServerErrorHandler() 00006 { 00007 } 00008 00009 void ServerErrorHandler::errorHandler(int severity, int code, char* msg) 00010 { 00011 std::cerr << '[' << DimError::toSeverity(severity) << "] " << DimError::toMsg(code) << std::endl; 00012 if ( msg != 0 ) { 00013 std::cout << '[' << DimError::toSeverity(severity) << "] " << msg << std::endl; 00014 } 00015 }