Example #1
0
        protected void RaiseException()
        {
            string s = GetExpr();

            ParserException exc = new ParserException(GetExpr(),
                                                      GetErrorMsg(),
                                                      mupGetErrorPos(m_parser),
                                                      GetErrorToken());

            throw exc;
        }
Example #2
0
        protected void RaiseException()
        {
            string s = mecGetExpr(m_parser);

            ParserException exc = new ParserException(mecGetExpr(m_parser),
                                                      mecGetErrorMsg(m_parser),
                                                      mecGetErrorPos(m_parser),
                                                      mecGetErrorToken(m_parser));

            throw exc;
        }
      private void DumpException(ParserException exc)
      {
        string sMsg;

        sMsg = "An error occured:\n";
        sMsg += string.Format("  Expression:  \"{0}\"\n", exc.Expression);
        sMsg += string.Format("  Message:     \"{0}\"\n", exc.Message);
        sMsg += string.Format("  Token:       \"{0}\"\n", exc.Token);
        sMsg += string.Format("  Position:      {0}\n", exc.Position);

        meHistory.SelectionColor = System.Drawing.Color.Red;
        meHistory.AppendText(sMsg);
        meHistory.SelectionColor = System.Drawing.Color.Black;

        meHistory.SelectionStart = meHistory.TextLength;
        meHistory.ScrollToCaret();
      }
        protected void RaiseException()
        {
            string s = GetExpr();

            ParserException exc = new ParserException(GetExpr(),
                                                      GetErrorMsg(),
                                                      mupGetErrorPos(m_parser),
                                                      GetErrorToken() );
            throw exc;
        }
Example #5
0
        protected void RaiseException()
        {
            string s = mecGetExpr(m_parser);

            ParserException exc = new ParserException(mecGetExpr(m_parser),
                                                  mecGetErrorMsg(m_parser),
                                                  mecGetErrorPos(m_parser),
                                                  mecGetErrorToken(m_parser) );
            throw exc;
        }