BOSS
7.0.4
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
Definition:
DistBoss/ClientErrHandler/ClientErrHandler-00-00-01/ClientErrHandler/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:
DistBoss/DistBossUtil/DistBossUtil-00-00-04/DistBossUtil/DimErrorMsg.h:21
DimError::toSeverity
const char * toSeverity(int severity)
Definition:
DistBoss/DistBossUtil/DistBossUtil-00-00-04/DistBossUtil/DimErrorMsg.h:8
source
DistBoss
ClientErrHandler
ClientErrHandler-00-00-01
src
ClientErrHandler.cxx
Generated by
1.9.6