(PHP 7, PHP 8)
Error is the base class for all internal PHP errors.
The error message
The error code
The filename where the error happened
The line where the error happened
The previously thrown exception
The string representation of the stack trace
The stack trace as an array