示例#1
0
 /**
 * @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();
}
示例#4
0
 /**
 * @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();
 }
示例#5
0
 TestException() {
   updateWhat();
 }
示例#6
0
 void setLineNumber(int ln)
 {
   m_LineNumber = ln;
   updateWhat();
 }
示例#7
0
 void setFileName(const std::string &fn)
 {
   m_FileName = fn;
   updateWhat();
 }
示例#8
0
 void setMessage(const std::string &m)
 {
   m_Message = m;
   updateWhat();
 }
void ParseException::setStatementNumber(int stmtNum)
{
	_stmtNum = stmtNum;

	updateWhat();
}