BlueSpice MediaWiki master
 All Classes Namespaces Files Functions Variables Groups Pages
Throwable Interface Reference
Inheritance diagram for Throwable:

Public Member Functions

 getMessage ()
 
 getCode ()
 
 getFile ()
 
 getLine ()
 
 getTrace ()
 
 getTraceAsString ()
 
 getPrevious ()
 
 __toString ()
 

Detailed Description

Throwable is the base interface for any object that can be thrown via a throw statement in PHP 7, including Error and Exception. 7.0

Member Function Documentation

Throwable::__toString ( )

Gets a string representation of the thrown object string Returns the string representation of the thrown object.

Since
7.0

Implemented in SoapFault, SQLiteException, Error, Exception, ApiUsageException, UsageException, PHPUnit_Framework_ExceptionWrapper, PHPUnit_Framework_Exception, SmartyException, and SmartyCompilerException.

Throwable::getCode ( )

Gets the exception code int Returns the exception code as integer in {

See Also
Exception} but possibly as other type in {
Exception} descendants (for example as string in {
PDOException}).
Since
7.0

Implemented in Error, and Exception.

Throwable::getFile ( )

Gets the file in which the exception occurred string Returns the name of the file from which the object was thrown. 7.0

Implemented in Error, and Exception.

Throwable::getLine ( )

Gets the line on which the object was instantiated int Returns the line number where the thrown object was instantiated. 7.0

Implemented in Error, and Exception.

Throwable::getMessage ( )

Gets the message string 7.0

Implemented in Error, and Exception.

Throwable::getPrevious ( )
Throwable::getTrace ( )

Gets the stack trace array Returns the stack trace as an array in the same format as {

See Also
debug_backtrace()}.
Since
7.0

Implemented in Error, and Exception.

Throwable::getTraceAsString ( )

Gets the stack trace as a string string Returns the stack trace as a string. 7.0

Implemented in Error, and Exception.


The documentation for this interface was generated from the following file: