Exception
class Exception implements Throwable (View source)
Exception is the base class for all Exceptions.
Properties
protected | $message | The error message |
|
protected | $code | The error code |
|
protected | $file | The filename where the error happened |
|
protected | $line | The line where the error happened |
Methods
Construct the exception. Note: The message is NOT binary safe.
Gets the Exception message
Gets the Exception code
Gets the file in which the exception occurred
Gets the line in which the exception occurred
Gets the stack trace
Returns previous Exception
Gets the stack trace as a string
String representation of the exception
No description
Details
__construct(string $message = "", int $code = 0, null|Throwable $previous = null)
Construct the exception. Note: The message is NOT binary safe.
final string
getMessage()
Gets the Exception message
final int
getCode()
Gets the Exception code
final string
getFile()
Gets the file in which the exception occurred
final int
getLine()
Gets the line in which the exception occurred
final array
getTrace()
Gets the stack trace
final null|Throwable
getPrevious()
Returns previous Exception
final string
getTraceAsString()
Gets the stack trace as a string
string
__toString()
String representation of the exception
void
__wakeup()
No description