PHP 클래스 MY_Exceptions, 68kb

상속: extends CI_Exceptions
파일 보기 프로젝트 열기: 68kb/68kb 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
$php_errors Some nice names for the error types
$shutdown_errors The Shutdown errors to show (all others will be ignored).

공개 메소드들

메소드 설명
__construct ( ) : void Construct
debug_path ( string $file ) : string Debug Path
debug_source ( $file, $line_number, $padding = 5 ) : FALSE Debug Source
error_handler ( $code, $error, $file = NULL, $line = NULL ) : boolean Error Handler
exception_handler ( Exception $e ) : boolean Exception Handler
exception_text ( Exception $e ) : string Exception Text
show_error ( $heading, $message, $template = 'error_general', $status_code = 500 ) : string General Error Page
shutdown_handler ( ) : void Shutdown Handler
trace ( array $trace = NULL ) : string Trace

비공개 메소드들

메소드 설명
is_extension ( string $file ) : boolean Is Extension

메소드 상세

__construct() 공개 메소드

Sets the error handlers.
public __construct ( ) : void
리턴 void

debug_path() 공개 정적인 메소드

This makes nicer looking paths for the error output.
public static debug_path ( string $file ) : string
$file string
리턴 string

debug_source() 공개 정적인 메소드

Returns an HTML string, highlighting a specific line of a file, with some number of lines padded above and below.
public static debug_source ( $file, $line_number, $padding = 5 ) : FALSE
리턴 FALSE source of file

error_handler() 공개 정적인 메소드

Converts all errors into ErrorExceptions. This handler respects error_reporting settings.
public static error_handler ( $code, $error, $file = NULL, $line = NULL ) : boolean
리턴 boolean

exception_handler() 공개 정적인 메소드

Displays the error message, source of the exception, and the stack trace of the error.
public static exception_handler ( Exception $e ) : boolean
$e Exception
리턴 boolean

exception_text() 공개 정적인 메소드

Makes a nicer looking, 1 line extension.
public static exception_text ( Exception $e ) : string
$e Exception
리턴 string

show_error() 공개 메소드

This function takes an error message as input (either as a string or an array) and displays it using the specified template.
public show_error ( $heading, $message, $template = 'error_general', $status_code = 500 ) : string
리턴 string

shutdown_handler() 공개 정적인 메소드

Catches errors that are not caught by the error handler, such as E_PARSE.
public static shutdown_handler ( ) : void
리턴 void

trace() 공개 정적인 메소드

Returns an array of HTML strings that represent each step in the backtrace.
public static trace ( array $trace = NULL ) : string
$trace array
리턴 string

프로퍼티 상세

$php_errors 공개적으로 정적으로 프로퍼티

Some nice names for the error types
public static $php_errors

$shutdown_errors 공개적으로 정적으로 프로퍼티

The Shutdown errors to show (all others will be ignored).
public static $shutdown_errors