ExceptionContextRegistry
class ExceptionContextRegistry
Properties
| protected bool | $enabled | ||
| protected bool | $recorderRegistered | ||
| protected null|ExceptionContext> | $contexts |
Methods
void
enable()
Enable exact exception-context handoff.
void
markRecorderRegistered()
Mark direct exception recording as registered on the exception handler.
bool
hasRecorder()
Determine whether direct exception recording is registered.
void
ExceptionContext|null
ExceptionContext|null
Details
at line 25
void
enable()
Enable exact exception-context handoff.
Boot-only. The registry remains enabled for the worker lifetime.
at line 35
void
markRecorderRegistered()
Mark direct exception recording as registered on the exception handler.
Boot-only. The registration persists on the exception handler for the worker lifetime.
at line 43
bool
hasRecorder()
Determine whether direct exception recording is registered.
at line 51
void
associate(Throwable $exception, ContextInterface $context, string|null $origin)
Associate an exception with the operation context that observed it.
at line 72
ExceptionContext|null
take(Throwable $exception)
Take the operation context associated with an exception.
at line 86
protected ExceptionContext|null
takeExact(Throwable $exception)
Take an exact exception-context association.