CGEM BOSS 6.6.5.h
BESIII Offline Software System
Loading...
Searching...
No Matches
ServerErrorHandler.cxx
Go to the documentation of this file.
3#include <iostream>
4
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}
const char * toMsg(int code)
Definition DimErrorMsg.h:21
const char * toSeverity(int severity)
Definition DimErrorMsg.h:8