/// <summary> /// Handle the exception by writing the stack trace to the output buffer. /// </summary> /// <param name="e"></param> private void HandleException(Exception e) { _outputBuffer.WriteLine(_engine.GetService <ExceptionOperations>().FormatException(e)); }