1234567891011121314151617181920 |
- using System;
- namespace EXTS
- {
- public class SyntaxException : Exception
- {
- string mg;
- public int ErrorPos { get; private set; }
- public override string Message => mg;
- public SyntaxException(string msg, int pos)
- {
- ErrorPos = pos;
- mg = msg;
- }
- public override string ToString() => "EXTS 编译错误:在第 " + ErrorPos + "字符:" + Message;
- }
- }
|