Errorexception
Official Document Address: http://php.net/manual/zh/class.errorexception.php
PHP Support version: 5 >=5.1, 7
Error exception. Inherit Exception, PHP 7 reference interface Throwable.
classErrorexceptionextends Exception ImplementsThrowable {//PHP 7 supports Throwable interface /*Properties*/ protected $severity;//Exception Level /*Inheritance Properties*/ protected string $message;//Exception Information protectedInt$code;//Error code protected string $file;//Error File protectedInt$line;//Error Line number /*Method*/ Public__construct ([string $message= "" [, int$code= 0 [, int$severity=E_error[,string $filename=__file__[, int$lineno=__line__[,Exception $previous=NULL]]]]]] )//constructs an error exception Final Publicint getseverity (void)//Get Exception level /*Inheritance Method*/ Final Public string Exception:: GetMessage (void)//gets the message content that was thrown Final PublicThrowableException:: GetPrevious (void)//back to previous Throwable Final PublicIntException:: GetCode (void)//get the error code thrown Final Public string Exception:: GetFile (void)//gets the file name that generated the exception Final PublicIntException:: GetLine (void)//get the relevant line number Final Public Array Exception:: Gettrace (void)//get trace information, return array form Final Public string Exception:: gettraceasstring (void)//get trace information, return a string form Public string Exception:: __tostring (void)//the thrown object is returned as a string, and the result can be printed with echo Final PrivatevoidException:: __clone (void)//attempting to clone an exception will result in a fatal error }
PHP Exception and Error--errorexception