Error::getPrevious

(No version information available, might only be in Git) Returns previous Throwable final public Throwable Error::getPrevious ( void ) Returns previous Throwable (the third parameter of Error::__construct()). Returns: Returns the previous Throwable if available or NULL otherwise. Examples: Error::getPrevious() example Loop

Error::getTrace

(No version information available, might only be in Git) Gets the stack trace final public array Error::getTrace ( void ) Returns the stack trace. Returns: Returns the stack trace as an array. Examples: Error::getTrace() example <?php function test() {  throw new Error; } try {  test(); } catch(Error $e) {  var_dump($

Error::getTraceAsString

(No version information available, might only be in Git) Gets the stack trace as a string final public string Error::getTraceAsString ( void ) Returns the stack trace as a string. Returns: Returns the stack trace as a string. Examples: Error::getTraceAsString() example <?php function test() {     throw new Error; } tr

Error::__construct

(No version information available, might only be in Git) Construct the error object public Error::__construct ([ string $message = "" [, int $code = 0 [, Throwable $previous = NULL ]]] ) Constructs the Error. Parameters: message The error message. code The error code. previous The previous throwable used for the excep

Exception::__clone

(PHP 5 >= 5.1.0, PHP 7) Clone the exception final private void Exception::__clone ( void ) Tries to clone the Exception, which results in Fatal error. Returns: No value is returned. Exception: Exceptions are not clonable.

Error::getMessage

(No version information available, might only be in Git) Gets the error message final public string Error::getMessage ( void ) Returns the error message. Returns: Returns the error message as a string. Examples: Error::getMessage() example <?php try {     throw new Error("Some error message"); } catch(Error $e) {     e

Exception::__toString

(PHP 5 >= 5.1.0, PHP 7) String representation of the exception public string Exception::__toString ( void ) Returns the string representation of the exception. Returns: Returns the string representation of the exception. Examples: Exception::__toString() example <?php try {     throw new Exception("Some error messag

Exception::getTraceAsString

(PHP 5 >= 5.1.0, PHP 7) Gets the stack trace as a string final public string Exception::getTraceAsString ( void ) Returns the Exception stack trace as a string. Returns: Returns the Exception stack trace as a string. Examples: Exception::getTraceAsString() example <?php function test() {     throw new Exception; }

ErrorException::getSeverity

(PHP 5 >= 5.1.0, PHP 7) Gets the exception severity final public int ErrorException::getSeverity ( void ) Returns the severity of the exception. Returns: Returns the severity level of the exception. Examples: ErrorException::getSeverity() example <?php try {     throw new ErrorException("Exception message", 0, 75);

Exception::getLine

(PHP 5 >= 5.1.0, PHP 7) Gets the line in which the exception occurred final public int Exception::getLine ( void ) Get line number where the exception was created. Returns: Returns the line number where the exception was created. Examples: Exception::getLine() example <?php try {     throw new Exception("Some error