/home/bes3soft/bes3soft/Boss/7.0.2/dist/7.0.2/DistBoss/DistBossUtil/DistBossUtil-00-00-04/DistBossUtil/DimErrorMsg.h

Go to the documentation of this file.
00001 #ifndef DIM_ERROR_MSG_H
00002 #define DIM_ERROR_MSG_H
00003 
00004 #include "dim_common.h"
00005 
00006 namespace DimError {
00007 
00008 const char* toSeverity(int severity) {
00009    switch ( severity ) {
00010       case ( DIM_INFO ) :
00011          return "DIM_INFO";
00012       case ( DIM_WARNING ) :
00013          return "DIM_WARNING";
00014       case ( DIM_ERROR) :
00015          return "DIM_ERROR";
00016       default :
00017          return "DIM_FATAL";
00018    }
00019 }
00020 
00021 const char* toMsg(int code) {
00022    switch ( code ) {
00023       case ( DIMDNSUNDEF ):
00024          return "DIM_DNS_NODE undefined";
00025       case ( DIMDNSREFUS ):
00026          return "DIM_DNS refuses connection";
00027       case ( DIMDNSDUPLC ):
00028          return "Service already exists in DNS";
00029       case ( DIMDNSEXIT ):
00030          return "DNS requests server to EXIT";
00031       case ( DIMDNSTMOUT ):
00032          return "Server failed sending Watchdog";
00033 
00034       case ( DIMDNSCNERR ):
00035          return "Connection to DNS failed";
00036       case ( DIMDNSCNEST ):
00037          return "Connection to DNS established";
00038 
00039       case ( DIMSVCDUPLC ):
00040          return "Service already exists in Server";
00041       case ( DIMSVCFORMT ):
00042          return "Bat format string for service";
00043       case ( DIMSVCINVAL ):
00044          return "Invalid Service ID";
00045 
00046       case ( DIMTCPRDERR ):
00047          return "TCP/IP read error";
00048       case ( DIMTCPWRRTY ):
00049          return "TCP/IP write error - Retrying";
00050       case ( DIMTCPWRTMO ):
00051          return "TCP/IP write error - Disconnected";
00052       case ( DIMTCPLNERR ):
00053          return "TCP/IP listen error";
00054       case ( DIMTCPOPERR ):
00055          return "TCP/IP open server error";
00056       case ( DIMTCPCNERR ):
00057          return "TCP/IP connection error";
00058       case ( DIMTCPCNEST ):
00059          return "TCP/IP connection established";
00060       default :
00061          return "Unknown Error Code!!!";
00062    }
00063 }
00064 
00065 }
00066 
00067 #endif

Generated on Tue Nov 29 22:58:02 2016 for BOSS_7.0.2 by  doxygen 1.4.7