コード例 #1
0
ファイル: fmGrammarExplorer.cs プロジェクト: dbremner/irony
        private void ShowRuntimeError(ScriptException error)
        {
            _runtimeError = error;
              lnkShowErrLocation.Enabled = _runtimeError != null;
              lnkShowErrStack.Enabled = lnkShowErrLocation.Enabled;
              if (_runtimeError != null) {
            //the exception was caught and processed by Interpreter
            WriteOutput("Error: " + error.Message + " At " + _runtimeError.Location.ToUiString() + ".");
            ShowSourcePosition(_runtimeError.Location.Position, 1);
              } else {
            //the exception was not caught by interpreter/AST node. Show full exception info
            WriteOutput("Error: " + error.Message);
            fmShowException.ShowException(error);

              }
              tabBottom.SelectedTab = pageOutput;
        }
コード例 #2
0
ファイル: fmGrammarExplorer.cs プロジェクト: dbremner/irony
 private void ClearRuntimeInfo()
 {
     lnkShowErrLocation.Enabled = false;
       lnkShowErrStack.Enabled = false;
       _runtimeError = null;
       txtOutput.Text = string.Empty;
 }