ApplicationCrashedEvent
in package
implements
IEvent
Event fired when the application crashes due to a fatal error or uncaught exception.
This event is triggered from the application's error handlers (fatalHandler, globalExceptionHandler, or onCrash method) when an unrecoverable error occurs.
Use cases:
- Send critical alerts to monitoring services (Sentry, Rollbar, etc.)
- Log detailed error information to external logging services
- Notify administrators via email/SMS of critical failures
- Trigger emergency cleanup or failover procedures
- Track crash frequency and patterns for stability analysis
Table of Contents
Interfaces
- IEvent
- Core event interface for the Neuron event system.
Properties
- $error : array<string|int, mixed>
Methods
- __construct() : mixed
- getName() : string
Properties
$error read-only
public
array<string|int, mixed>
$error
Methods
__construct()
public
__construct(array<string|int, mixed> $error) : mixed
Parameters
- $error : array<string|int, mixed>
-
Error details containing: type, message, file, line, and optionally trace
getName()
public
getName() : string