CObjReaderLineException::CObjReaderLineException(const CObjReaderLineException & rhs ) : CObjReaderParseException( rhs ), m_eProblem(rhs.Problem()), m_strSeqId(rhs.SeqId()), m_uLineNumber(rhs.Line()), m_strFeatureName(rhs.FeatureName()), m_strQualifierName(rhs.QualifierName()), m_strQualifierValue(rhs.QualifierValue()), m_strErrorMessage(rhs.ErrorMessage()), m_vecOfOtherLines(rhs.m_vecOfOtherLines) { SetSeverity( rhs.Severity() ); x_InitErrCode(static_cast<CException::EErrCode>(rhs.x_GetErrCode())); }
/** * * Test suite constructor (second phase) * * @xxxx * */ EXPORT_C void CTestSuite::ConstructL() { // create a new Array to store the test steps in iArrayTestSteps = new(ELeave) CArrayPtrFlat<RTestStep>(1); // default severity SetSeverity(ESevrAll); iLogger = NULL; // initialise the derived test suites InitialiseL(); }
CObjReaderLineException::CObjReaderLineException( EDiagSev eSeverity, unsigned int uLine, const std::string &strMessage, EProblem eProblem, const std::string& strSeqId, const std::string & strFeatureName, const std::string & strQualifierName, const std::string & strQualifierValue, CObjReaderLineException::EErrCode eErrCode, const TVecOfLines & vecOfOtherLines ) : CObjReaderParseException( DIAG_COMPILE_INFO, 0, static_cast<CObjReaderParseException::EErrCode>(CException::eInvalid), strMessage, uLine, eDiag_Info ), m_eProblem(eProblem), m_strSeqId(strSeqId), m_uLineNumber(uLine), m_strFeatureName(strFeatureName), m_strQualifierName(strQualifierName), m_strQualifierValue(strQualifierValue), m_strErrorMessage(strMessage), m_vecOfOtherLines(vecOfOtherLines) { SetSeverity( eSeverity ); x_InitErrCode(static_cast<CException::EErrCode>(eErrCode)); }
/// Set severity of next error message. void XSError::SetSeverity( XSErrorSeverity s ) ///< error severity level { severity = s; switch ( severity ) { case XSErrorFatal: *os << GetHeader().c_str() << " FATAL ERROR: "; SetState( XSErrorInMessage ); break; case XSErrorMajor: *os << GetHeader().c_str() << " MAJOR ERROR: "; os->flush(); SetState( XSErrorInMessage ); break; case XSErrorMinor: *os << GetHeader().c_str() << " MINOR ERROR: "; os->flush(); SetState( XSErrorInMessage ); break; case XSErrorNone: *os << GetHeader().c_str() << ": "; os->flush(); SetState( XSErrorInMessage ); break; default: SetSeverity( XSErrorMinor ); *os << "\nerror severity was incorrectly set!\n"; os->flush(); EndMsg(); break; } // switch } // SetSeverity