public override void HandleException(Exception e) { StartResponseIfNeeded(); _anyExceptions = true; _writer.EndResults(); _writer.WriteError(e); throw e; }
public override async ValueTask HandleExceptionAsync(Exception e, CancellationToken token) { StartResponseIfNeeded(); _anyExceptions = true; _writer.EndResults(); await _writer.WriteErrorAsync(e); throw e; }