Go to the documentation of this file.Go to the SVN repository for this file.
1 #ifndef APP_PROJECT_TREE_BUILDER___PTB_ERROR_CODES___HPP
2 #define APP_PROJECT_TREE_BUILDER___PTB_ERROR_CODES___HPP
91 #define PTB_ERROR(file, msg) \
92 ERR_POST(Error << MDiagFile(file) << ": " << msg)
94 #define PTB_ERROR_EX(file, err_code, msg) \
95 ERR_POST(Error << MDiagFile(file) << ErrCode(err_code) << msg)
97 #define PTB_WARNING(file, msg) \
98 ERR_POST(Warning << MDiagFile(file) << ": " << msg)
100 #define PTB_WARNING_EX(file, err_code, msg) \
101 ERR_POST(Warning << MDiagFile(file) << ErrCode(err_code) << msg)
103 #define PTB_INFO(msg) \
104 ERR_POST(Info << MDiagFile(kEmptyStr) << ErrCode(ePTB_NoError) << msg)
106 #define PTB_INFO_EX(file, err_code, msg) \
107 ERR_POST(Info << MDiagFile(file) << ErrCode(err_code) << msg)
109 #define PTB_TRACE(msg) \
110 _TRACE(Trace << ErrCode(ePTB_NoError) << msg)
112 #define PTB_TRACE_EX(file, err_code, msg) \
113 _TRACE(Trace << MDiagFile(file) << ErrCode(err_code) << msg)
friend const CNcbiDiag & operator<<(const CNcbiDiag &diag, const MDiagFile &file)
MDiagFile(const string &file, int line=0)
Include a standard set of the NCBI C++ Toolkit most basic headers.
const CNcbiDiag & SetLine(size_t line) const
Set line number for post.
const CNcbiDiag & SetFile(const char *file) const
Set file name to post.
#define END_NCBI_SCOPE
End previously defined NCBI scope.
#define BEGIN_NCBI_SCOPE
Define ncbi namespace.
EProjectTreeBuilderErrCode
@ ePTB_ConfigurationError