Throwable
Official Document Address: http://php.net/manual/en/class.throwable.php
PHP Support version: 7
Throwable is a basic interface in PHP 7 that can be used as a throw declaration for any object, including Expection (exception) and error (Errors).
1 Throwable {2 /*Method*/3 Abstract Public stringgetMessage (void)//Get the message content thrown
4 Abstract Publicint GetCode (void)//Get the error code thrown
5 Abstract Public stringgetFile (void)//Gets the file name that generated the exception
6 Abstract Publicint getLine (void)//Get related line number
7 Abstract Public Arraygettrace (void)//Get tracking information, return array form
8 Abstract Public stringgettraceasstring (void)//Get tracking information, return string form
9 Abstract Publicthrowable getprevious (void)//return to previous Throwable
Ten Abstract Public string__tostring (void)//Thrown object is returned as a string, such as the corresponding result can be printed with echo One}
PHP Exception and Error--throwable