PHP 클래스 think\Error

파일 보기 프로젝트 열기: top-think/framework 1 사용 예제들

공개 메소드들

메소드 설명
appError ( integer $errno, integer $errstr, string $errfile = '', integer $errline, array $errcontext = [] ) Error Handler
appException ( Exception | Throwable $e ) Exception Handler
appShutdown ( ) Shutdown Handler
getExceptionHandler ( ) : Handle Get an instance of the exception handler.
register ( ) : void 注册异常处理

보호된 메소드들

메소드 설명
isFatal ( integer $type ) : boolean 确定错误类型是否致命

메소드 상세

appError() 공개 정적인 메소드

Error Handler
public static appError ( integer $errno, integer $errstr, string $errfile = '', integer $errline, array $errcontext = [] )
$errno integer 错误编号
$errstr integer 详细错误信息
$errfile string 出错的文件
$errline integer 出错行号
$errcontext array

appException() 공개 정적인 메소드

Exception Handler
public static appException ( Exception | Throwable $e )
$e Exception | Throwable

appShutdown() 공개 정적인 메소드

Shutdown Handler
public static appShutdown ( )

getExceptionHandler() 공개 정적인 메소드

Get an instance of the exception handler.
public static getExceptionHandler ( ) : Handle
리턴 think\exception\Handle

isFatal() 보호된 정적인 메소드

确定错误类型是否致命
protected static isFatal ( integer $type ) : boolean
$type integer
리턴 boolean

register() 공개 정적인 메소드

注册异常处理
public static register ( ) : void
리턴 void