コード例 #1
0
ファイル: srv_lib.hpp プロジェクト: jackgopack4/pico-blast
 CNcbiDiag(const CDiagCompileInfo& info, EDiagSev sev, TDiagPostFlags flags = 0)
 {
     StartOldStyle(info.GetFile(), info.GetLine(), info.GetFunction().c_str());
     if (sev == eDiag_Trace)
         operator<< (Trace);
     else
         operator<< (EOldStyleSeverity(int(sev) - 1));
 }
コード例 #2
0
ファイル: ncbiexpt.cpp プロジェクト: swuecho/igblast
void CException::x_Init(const CDiagCompileInfo& info,const string& message,
                        const CException* prev_exception, EDiagSev severity)
{
    m_Severity = severity;
    m_File     = info.GetFile();
    m_Line     = info.GetLine();
    m_Module   = info.GetModule();
    m_Class    = info.GetClass();
    m_Function = info.GetFunction();
    m_Msg      = message;
    if (!m_Predecessor && prev_exception) {
        m_Predecessor = prev_exception->x_Clone();
    }
    x_GetStackTrace();
}