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)); }
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(); }