BOSS 7.0.5
BESIII Offline Software System
Loading...
Searching...
No Matches
ServerErrorHandler.cxx
Go to the documentation of this file.
1#include "DistBossServer/ServerErrorHandler.h"
2#include "DistBossUtil/DimErrorMsg.h"
3#include <iostream>
4
6{
7}
8
9void ServerErrorHandler::errorHandler(int severity, int code, char* msg)
10{
11 std::cerr << '[' << DimError::toSeverity(severity) << "] " << DimError::toMsg(code) << std::endl;
12 if ( msg != 0 ) {
13 std::cout << '[' << DimError::toSeverity(severity) << "] " << msg << std::endl;
14 }
15}