ErrorOccurredEvent
in package
implements
IEvent
Event fired when a PHP error occurs (non-fatal).
This event is triggered from the application's error handler for non-fatal PHP errors like notices, warnings, and user-triggered errors.
Use cases:
- Track error frequency and patterns
- Send non-critical errors to monitoring services
- Log detailed error context for debugging
- Trigger alerts when error rates exceed thresholds
- Generate error reports for developers
Table of Contents
Interfaces
- IEvent
- Core event interface for the Neuron event system.
Properties
Methods
- __construct() : mixed
- getName() : string
Properties
$errorNo read-only
public
int
$errorNo
$file read-only
public
string
$file
$line read-only
public
int
$line
$message read-only
public
string
$message
Methods
__construct()
public
__construct(int $errorNo, string $message, string $file, int $line) : mixed
Parameters
- $errorNo : int
-
PHP error number (E_NOTICE, E_WARNING, etc.)
- $message : string
-
Error message
- $file : string
-
File where error occurred
- $line : int
-
Line number where error occurred
getName()
public
getName() : string