EC
🐘

PHP Exceptions & Errors

PHP 8.x23 codes

SPL exceptions, Error hierarchy, E_* constants and PDO errors

Showing 23 of 23 errors
CodeMessage
ParseErrorPHP syntax error — script cannot be parsed→
TypeErrorArgument or return type mismatch→
ValueErrorArgument has the right type but an invalid value→
DivisionByZeroErrorInteger divided or modulo by zero→
ArithmeticErrorBase class for arithmetic errors→
ErrorExceptionPHP error converted to a catchable exception→
InvalidArgumentExceptionFunction argument is invalid→
RuntimeExceptionError that can only be found at runtime→
LogicExceptionLogic error — represents a programming bug→
BadMethodCallExceptionMethod called that does not exist or with bad arguments→
OutOfBoundsExceptionValue not in valid range at runtime→
OverflowExceptionAdding to a full container→
UnderflowExceptionRemoving from an empty container→
LengthExceptionLength of an argument is invalid→
RangeExceptionValue out of defined range at runtime→
DomainExceptionValue does not adhere to a valid data domain→
UnexpectedValueExceptionValue does not match expected set→
PDOExceptionDatabase error via PDO→
E_ERRORFatal runtime error — script halted→
ReflectionExceptionReflection API error — class or method not found→
UnhandledMatchErrorNo match arm matched the value (PHP 8.0+)β†’
FiberErrorInvalid Fiber operation (PHP 8.1+)β†’
JsonExceptionJSON encode or decode failed→