|
| static void | PrintError (const char *err_message, const char *file, const char *func_name, int line) |
| |
| static void | PrintError (const int shmflag, RunInfoBuffer *nsm_status, const char *err_message, const char *file, const char *func_name, const int line) |
| |
| static void | PrintError (int shmflag, Belle2::RunInfoBuffer *nsm_status, const std::string &err_str) |
| |
| static void | PrintError (const char *err_message) |
| |
Definition at line 22 of file CprErrorMessage.h.
◆ CprErrorMessage()
Default constructor.
Definition at line 24 of file CprErrorMessage.cc.
25{
26 openlog("", LOG_PERROR, LOG_LOCAL0);
27}
◆ ~CprErrorMessage()
◆ PrintError() [1/4]
| void PrintError |
( |
const char * | err_message | ) |
|
|
static |
Definition at line 82 of file CprErrorMessage.cc.
83{
84 printf("[DEBUG] %s", err_message);
85 fflush(stdout);
86
87 printf("[FATAL] %s\n", err_message); exit(1);
88
89
90
91
92
93
94
95
96
97
98 return;
99}
◆ PrintError() [2/4]
| void PrintError |
( |
const char * | err_message, |
|
|
const char * | file, |
|
|
const char * | func_name, |
|
|
int | line ) |
|
static |
Definition at line 53 of file CprErrorMessage.cc.
54{
55 char err_buf[500];
56 sprintf(err_buf, "%s : %s %s %d", err_message, file, func_name, line);
57
58 printf("%s", err_buf); fflush(stdout);
59
60
61 exit(1);
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77 return;
78}
◆ PrintError() [3/4]
| void PrintError |
( |
const int | shmflag, |
|
|
RunInfoBuffer * | nsm_status, |
|
|
const char * | err_message, |
|
|
const char * | file, |
|
|
const char * | func_name, |
|
|
const int | line ) |
|
static |
Definition at line 43 of file CprErrorMessage.cc.
45{
46 if (shmflag > 0) {
47 nsm_status->reportError(RunInfoBuffer::CPRFIFO_FULL);
48 }
49 PrintError(err_message, file, func_name, line);
50}
◆ PrintError() [4/4]
Definition at line 35 of file CprErrorMessage.cc.
36{
37 if (shmflag > 0) {
38 nsm_status->reportError(RunInfoBuffer::CPRFIFO_FULL);
39 }
40 PrintError(err_str.c_str());
41}
The documentation for this class was generated from the following files: