PHP Class core\Error

Inheritance: extends core\Exception
Afficher le fichier Open project: sendya/shadowsocks-panel Class Usage Examples

Méthodes publiques

Méthode Description
__construct ( string $message = 'Internal Server Error', integer $code, Throwable $previous = null, array $trace = [] ) Create a Exception
formatBackTrace ( ) : string Format backtrace information
handlePHPError ( $errNo, $errStr, $errFile, $errLine )
handleUncaughtException ( Throwable $instance )
registerHandler ( ) Register custom handler for uncaught exception and errors

Method Details

__construct() public méthode

Create a Exception
public __construct ( string $message = 'Internal Server Error', integer $code, Throwable $previous = null, array $trace = [] )
$message string Error message
$code integer Error code
$previous Throwable Previous exception
$trace array Backtrace information

formatBackTrace() public méthode

Format backtrace information
public formatBackTrace ( ) : string
Résultat string Formatted backtrace information

handlePHPError() public static méthode

public static handlePHPError ( $errNo, $errStr, $errFile, $errLine )

handleUncaughtException() public static méthode

public static handleUncaughtException ( Throwable $instance )
$instance Throwable Exception or Error instance

registerHandler() public static méthode

Register custom handler for uncaught exception and errors
public static registerHandler ( )