Beispiel #1
0
        public override void HandleException(Exception e)
        {
            StartResponseIfNeeded();

            _anyExceptions = true;

            _writer.EndResults();
            _writer.WriteError(e);

            throw e;
        }
Beispiel #2
0
        public override async ValueTask HandleExceptionAsync(Exception e, CancellationToken token)
        {
            StartResponseIfNeeded();

            _anyExceptions = true;

            _writer.EndResults();
            await _writer.WriteErrorAsync(e);

            throw e;
        }