BOSS
7.1.1
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
5
ServerErrorHandler::ServerErrorHandler
()
6
{
7
}
8
9
void
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
}
DimErrorMsg.h
ServerErrorHandler.h
ServerErrorHandler::ServerErrorHandler
ServerErrorHandler()
Definition
ServerErrorHandler.cxx:5
DimError::toMsg
const char * toMsg(int code)
Definition
DimErrorMsg.h:21
DimError::toSeverity
const char * toSeverity(int severity)
Definition
DimErrorMsg.h:8
7.1.1
DistBoss
DistBossServer
DistBossServer-00-00-04
src
ServerErrorHandler.cxx
Generated by
1.12.0