Exception
interface Exception implements Throwable (View source)
Common interface for all driver exceptions. This may be used to catch only exceptions originating from the driver itself.
Methods
string
__toString()
Magic method {https://www.php.net/manual/en/language.oop5.magic.php#object.tostring} allows a class to decide how it will react when it is treated like a string.
from
Stringable
Details
string
__toString()
Magic method {https://www.php.net/manual/en/language.oop5.magic.php#object.tostring} allows a class to decide how it will react when it is treated like a string.
string
getMessage()
Since: 7.0
Gets the message
int
getCode()
Since: 7.0
Gets the exception code
string
getFile()
Since: 7.0
Gets the file in which the exception occurred
int
getLine()
Since: 7.0
Gets the line on which the object was instantiated
array
getTrace()
Since: 7.0
Gets the stack trace
string
getTraceAsString()
Since: 7.0
Gets the stack trace as a string
null|Throwable
getPrevious()
Since: 7.0
Returns the previous Throwable