BOSS
7.1.1
BESIII Offline Software System
Loading...
Searching...
No Matches
ClientErrHandler.cxx
Go to the documentation of this file.
1
#include "
ClientErrHandler/ClientErrHandler.h
"
2
#include "
DistBossUtil/DimErrorMsg.h
"
3
#include "dic.hxx"
4
#include <iostream>
5
6
ClientErrHandler
* ClientErrHandler::s_instance = 0;
7
8
void
ClientErrHandler::registerInstance
()
9
{
10
if
( s_instance == 0 ) {
11
s_instance =
new
ClientErrHandler
();
12
DimClient::addErrorHandler( s_instance );
13
}
14
}
15
16
ClientErrHandler::ClientErrHandler
()
17
{
18
}
19
20
void
ClientErrHandler::errorHandler(
int
severity,
int
code,
char
* msg)
21
{
22
std::cerr <<
'['
<<
DimError::toSeverity
(severity) <<
"] "
<<
DimError::toMsg
(code) << std::endl;
23
if
( msg != 0 ) {
24
std::cout <<
'['
<<
DimError::toSeverity
(severity) <<
"] "
<< msg << std::endl;
25
}
26
}
ClientErrHandler.h
DimErrorMsg.h
ClientErrHandler
Definition
ClientErrHandler.h:7
ClientErrHandler::registerInstance
static void registerInstance()
Definition
ClientErrHandler.cxx:8
ClientErrHandler::ClientErrHandler
ClientErrHandler()
Definition
ClientErrHandler.cxx:16
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
ClientErrHandler
ClientErrHandler-00-00-01
src
ClientErrHandler.cxx
Generated by
1.12.0