recordException static method
Buffer r and emit it on onExceptionRecord, after the registered
TelescopeRedaction.redactor (if any) ran over its message and stack;
dropped when the redactor throws.
Implementation
static void recordException(ExceptionRecord r) {
if (_paused) return;
final ExceptionRecord? redacted =
TelescopeRedaction.redactExceptionRecord(r);
if (redacted == null) return;
_exceptions.addLast(redacted);
while (_exceptions.length > _capacityOf(TelescopeKind.exceptions)) {
_exceptions.removeFirst();
}
_exceptionStream.add(redacted);
}