/** * @brief Copy Constructor */ TestException(const TestException &te) { m_Message = (&te)->getMessage(); m_FileName = te.getFileName(); m_LineNumber = te.getLineNumber(); updateWhat(); }
ParseException::ParseException(std::string message) { _stmtNum = 0; _token = ""; _message = message; updateWhat(); }
ParseException::ParseException(int stmtNum, std::string token, std::string message) { _stmtNum = stmtNum; _token = token; _message = message; updateWhat(); }
/** * @brief * @param what * @param file * @param lineNumber */ TestException(const std::string &what, const std::string &filename, int lineNumber) : m_Message(what), m_FileName(filename), m_LineNumber(lineNumber) { updateWhat(); }
TestException() { updateWhat(); }
void setLineNumber(int ln) { m_LineNumber = ln; updateWhat(); }
void setFileName(const std::string &fn) { m_FileName = fn; updateWhat(); }
void setMessage(const std::string &m) { m_Message = m; updateWhat(); }
void ParseException::setStatementNumber(int stmtNum) { _stmtNum = stmtNum; updateWhat(); }