Go to the documentation of this file.Go to the SVN repository for this file.
1 #ifndef CTRANSITION___NCBIERR__HPP
2 #define CTRANSITION___NCBIERR__HPP
49 #define E_Programmer 999
65 #define MSG_OK SEV_ERROR
68 #define ErrPostStr ErrPostEx
69 #define ErrSetLog SetLogFile
78 #define ErrPostEx(sev, err_code, ...) \
79 ( NCBI_NS_NCBI::CNcbiDiag(DIAG_COMPILE_INFO).GetRef() \
80 << NCBI_NS_NCBI::ErrCode(err_code) \
81 << ctransition_ErrSeverity(sev) \
82 << ctransition_ErrMessage(__VA_ARGS__) \
83 << NCBI_NS_NCBI::Endm )
87 #define Nlm_Message(key, ...) ErrPostEx((ErrSev)key, 0, __VA_ARGS__)
Defines NCBI C++ diagnostic APIs, classes, and macros.