Neuron-PHP

FatalErrorEvent 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

$file  : string
$line  : int
$message  : string
$type  : string

Methods

__construct()  : mixed
getName()  : string

Properties

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


        
On this page

Search results