BOSS 7.0.2
BESIII Offline Software System
Loading...
Searching...
No Matches
DimError Namespace Reference

Functions

const char * toSeverity (int severity)
 
const char * toMsg (int code)
 

Function Documentation

◆ toMsg()

const char * DimError::toMsg ( int  code)

Definition at line 21 of file DistBoss/DistBossUtil/DistBossUtil-00-00-04/DistBossUtil/DimErrorMsg.h.

21 {
22 switch ( code ) {
23 case ( DIMDNSUNDEF ):
24 return "DIM_DNS_NODE undefined";
25 case ( DIMDNSREFUS ):
26 return "DIM_DNS refuses connection";
27 case ( DIMDNSDUPLC ):
28 return "Service already exists in DNS";
29 case ( DIMDNSEXIT ):
30 return "DNS requests server to EXIT";
31 case ( DIMDNSTMOUT ):
32 return "Server failed sending Watchdog";
33
34 case ( DIMDNSCNERR ):
35 return "Connection to DNS failed";
36 case ( DIMDNSCNEST ):
37 return "Connection to DNS established";
38
39 case ( DIMSVCDUPLC ):
40 return "Service already exists in Server";
41 case ( DIMSVCFORMT ):
42 return "Bat format string for service";
43 case ( DIMSVCINVAL ):
44 return "Invalid Service ID";
45
46 case ( DIMTCPRDERR ):
47 return "TCP/IP read error";
48 case ( DIMTCPWRRTY ):
49 return "TCP/IP write error - Retrying";
50 case ( DIMTCPWRTMO ):
51 return "TCP/IP write error - Disconnected";
52 case ( DIMTCPLNERR ):
53 return "TCP/IP listen error";
54 case ( DIMTCPOPERR ):
55 return "TCP/IP open server error";
56 case ( DIMTCPCNERR ):
57 return "TCP/IP connection error";
58 case ( DIMTCPCNEST ):
59 return "TCP/IP connection established";
60 default :
61 return "Unknown Error Code!!!";
62 }
63}

◆ toSeverity()

const char * DimError::toSeverity ( int  severity)

Definition at line 8 of file DistBoss/DistBossUtil/DistBossUtil-00-00-04/DistBossUtil/DimErrorMsg.h.

8 {
9 switch ( severity ) {
10 case ( DIM_INFO ) :
11 return "DIM_INFO";
12 case ( DIM_WARNING ) :
13 return "DIM_WARNING";
14 case ( DIM_ERROR) :
15 return "DIM_ERROR";
16 default :
17 return "DIM_FATAL";
18 }
19}