/// <summary> /// Initializes a new instance of the <see cref="Error"/> class. /// </summary> /// <param name="exception">The exception thrown.</param> /// <param name="syntaxTreeObject">The algorithm object where the problem comes.</param> public Error(BaZicInterpreterException exception, NodeObject syntaxTreeObject) : this(exception) { SyntaxTreeObject = syntaxTreeObject; }
internal void ChangeState(object source, BaZicInterpreterException exception, NodeObject syntaxTreeObject = null) { ChangeState(source, new BaZicInterpreterStateChangeEventArgs(new Error(exception, syntaxTreeObject))); }
/// <summary> /// Initializes a new instance of the <see cref="Error"/> class. /// </summary> /// <param name="exception">The exception thrown.</param> public Error(BaZicInterpreterException exception) { Exception = exception; }