/// <summary> /// Initializes a new instance of the Exception class. /// </summary> /// <param name="message"></param> /// <param name="position"></param> internal CompilingException(string message, Position position) : base("SYNTAX " + message, position) { }
/// <summary> /// Initializes a new instance of the Exception class. /// </summary> /// <param name="message"></param> /// <param name="position"></param> public PositionException(string message, Position position) : base(string.Format("{0} {1}", message, position.ToString())) { this.position = position; }
public Error(Position pos) { this.pos = pos; }