FatalErrorEvent
in package
implements
IEvent
Event fired when a fatal PHP error occurs.
This event is triggered from the application's fatal error handler when a fatal error is detected (E_ERROR, E_PARSE, E_CORE_ERROR, etc.).
Use cases:
- Send critical alerts immediately to on-call personnel
- Log fatal errors to external services for post-mortem analysis
- Trigger automatic incident creation in ticketing systems
- Record error details for debugging and reproduction
- Track fatal error trends to identify stability issues
Table of Contents
Interfaces
- IEvent
- Core event interface for the Neuron event system.
Properties
Methods
- __construct() : mixed
- getName() : string
Properties
$file read-only
public
string
$file
$line read-only
public
int
$line
$message read-only
public
string
$message
$type read-only
public
string
$type
Methods
__construct()
public
__construct(string $type, string $message, string $file, int $line) : mixed
Parameters
- $type : string
-
Error type name (e.g., 'Fatal Error', 'Parse Error')
- $message : string
-
Error message
- $file : string
-
File where error occurred
- $line : int
-
Line number where error occurred
getName()
public
getName() : string