ErrorHandler
Interfaces
- ErrorHandler
- Receives Throwables raised inside the SDK at runtime.
Classes
- CompositeErrorHandler
- Fans an error out to multiple handlers. Each child invocation is wrapped so a
misbehaving handler cannot prevent siblings from running.
- ErrorLogHandler
- Default ErrorHandler. Writes formatted Throwables via PHP's error_log() —
stderr in CLI by default, or the error_log ini setting otherwise.
- NullErrorHandler
- Discards every Throwable.
- StreamHandler
- Appends formatted Throwables (one per line) to a file path or php:// stream
wrapper. The stream is opened lazily on the first handle() call and reused
across subsequent calls; __destruct() closes it.
- SyslogHandler
- Writes formatted Throwables to the OS syslog facility via openlog/syslog/closelog.
- UdpSyslogHandler
- Writes RFC 5424-style syslog frames over UDP to a remote collector.
Enums
- ErrorLogMessageType
- Backed counterpart of PHP's error_log() $message_type argument.
- SyslogFacility
- RFC 5424 syslog facility codes.
- SyslogSeverity
- RFC 5424 syslog severity levels.