Error::getFile

(No version information available, might only be in Git) Gets the file in which the error occurred final public string Error::getFile ( void ) Get the name of the file the error occurred. Returns: Returns the filename in which the error occurred. Examples: Error::getFile() example <?php try {     throw new Error; } cat

Error::getCode

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

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::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

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

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);

ErrorException::__construct

(PHP 5 >= 5.1.0, PHP 7) Constructs the exception public ErrorException::__construct ([ string $message = "" [, int $code = 0 [, int $severity = 1 [, string $filename = __FILE__ [, int $lineno = __LINE__ [, Exception $previous = NULL ]]]]]] ) Constructs the Exception. Parameters: message The Exception message to throw. code The Exception code.

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.

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; }