final class FailureReporter

Reports secondary failures at boundaries that must keep the failure they are already handling.

Methods

static void
report(Throwable $exception)

Report a secondary failure without ever throwing.

static Throwable
preferCancellation(Throwable|null $kept, Throwable $next)

Select the kept failure like Coroutine::preferCancellation() and report the one it displaces.

Details

at line 28
static void report(Throwable $exception)

Report a secondary failure without ever throwing.

Parameters

Throwable $exception

Return Value

void

at line 57
static Throwable preferCancellation(Throwable|null $kept, Throwable $next)

Select the kept failure like Coroutine::preferCancellation() and report the one it displaces.

Parameters

Throwable|null $kept
Throwable $next

Return Value

Throwable