Neuron-PHP

ErrorOccurredEvent 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

$errorNo  : int
$file  : string
$line  : int
$message  : string

Methods

__construct()  : mixed
getName()  : string

Properties

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


        
On this page

Search results