EC
errcodes.dev
HTTP
PostgreSQL
Linux
Python
Docker
21 languages Β· 7,377+ codes
errcodes.dev
/
PHP
π
PHP Exceptions & Errors
PHP 8.x
23 codes
SPL exceptions, Error hierarchy, E_* constants and PDO errors
All severities
FATAL
ERROR
All tiers
Common
Notable
Critical
Showing
23
of
23
errors
Code
Message
Severity
Tier
ParseError
PHP syntax error β script cannot be parsed
FATAL
Common
β
TypeError
Argument or return type mismatch
ERROR
Common
β
ValueError
Argument has the right type but an invalid value
ERROR
Common
β
DivisionByZeroError
Integer divided or modulo by zero
ERROR
Common
β
ArithmeticError
Base class for arithmetic errors
ERROR
Common
β
ErrorException
PHP error converted to a catchable exception
ERROR
Common
β
InvalidArgumentException
Function argument is invalid
ERROR
Common
β
RuntimeException
Error that can only be found at runtime
ERROR
Notable
β
LogicException
Logic error β represents a programming bug
ERROR
Common
β
BadMethodCallException
Method called that does not exist or with bad arguments
ERROR
Common
β
OutOfBoundsException
Value not in valid range at runtime
ERROR
Common
β
OverflowException
Adding to a full container
ERROR
Common
β
UnderflowException
Removing from an empty container
ERROR
Common
β
LengthException
Length of an argument is invalid
ERROR
Common
β
RangeException
Value out of defined range at runtime
ERROR
Common
β
DomainException
Value does not adhere to a valid data domain
ERROR
Common
β
UnexpectedValueException
Value does not match expected set
ERROR
Common
β
PDOException
Database error via PDO
ERROR
Notable
β
E_ERROR
Fatal runtime error β script halted
FATAL
Critical
β
ReflectionException
Reflection API error β class or method not found
ERROR
Notable
β
UnhandledMatchError
No match arm matched the value (PHP 8.0+)
ERROR
Common
β
FiberError
Invalid Fiber operation (PHP 8.1+)
ERROR
Notable
β
JsonException
JSON encode or decode failed
ERROR
Common
β