ExceptionContextRegistry
class ExceptionContextRegistry
Properties
| protected bool | $enabled | ||
| protected bool | $recorderRegistered | ||
| protected null|ExceptionContext> | $contexts |
Methods
Enable exact exception-context handoff.
Mark direct exception recording as registered on the exception handler.
Determine whether direct exception recording is registered.
Details
at line 26
void
enable()
Enable exact exception-context handoff.
The shared registry remains enabled for the worker lifetime.
at line 39
void
markRecorderRegistered()
Mark direct exception recording as registered on the exception handler.
On the shared registry, the mark persists for the worker lifetime and lets the log handler defer exceptions currently being reported by the exception handler to the direct recorder.
at line 48
bool
hasRecorder()
Determine whether direct exception recording is registered.
at line 56
void
associate(Throwable $exception, ContextInterface $context, string|null $origin)
Associate an exception with the operation context that observed it.
at line 77
ExceptionContext|null
take(Throwable $exception)
Take the operation context associated with an exception.
at line 91
protected ExceptionContext|null
takeExact(Throwable $exception)
Take an exact exception-context association.