PHP 클래스 BaseException, atk4

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

공개 프로퍼티들

프로퍼티 타입 설명
$actions Array of available actions
$api
$app Always points to current Application
$by_exception Link to another exception which caused this one
$code error code
$more_info Array with more info
$my_backtrace Backtrace array
$name Classname of exception
$owner Link to object into which we added this object
$recommendation Plain text recommendation on how the problem can be solved
$shift Backtrace shift

공개 메소드들

메소드 설명
__construct ( string $msg, string | integer $code ) On class construct.
addAction ( string | array $key, string | array $descr ) Actions will be displayed as links on the exception page allowing viewer to perform additional debug functions.
addMoreInfo ( string $key, mixed $value ) Call this to add additional information to the exception you are about to throw.
addThis ( AbstractObject $obj ) Add reference to the object.
backtrace ( integer $sh = null, array $backtrace = null ) : string
by ( Exception $e ) Records another exception as a cause of your current exception.
collectBasicData ( string | integer $code ) Collect basic data of exception.
getAdditionalMessage ( ) : string Undocumented.
getDetailedHTML ( ) : string Redefine this function to add additional HTML output.
getDocURL ( AbstractObject $o ) : boolean | string Classes define a DOC constant which points to a on-line resource containing documentation for given class. This method will return full URL for the specified object.
getHTML ( ) : string Returns HTML representation of the exception.
getHTMLActions ( ) : string
getHTMLHeader ( ) : string
getHTMLSolution ( ) : string
getHeader ( ) : string
getMyFile ( ) : string Return filename from backtrace log.
getMyLine ( ) : string Return line number from backtract log.
getMyTrace ( ) : array Return collected backtrace info.
getSolution ( ) : array
getText ( ) : string Returns Textual representation of the exception.
init ( ) Initialization.
print_r ( array | object | string $key, string $gs, string $ge, string $ls, string $le, string $ind = ' ' ) : null | string Utility.
setCode ( integer $code ) Set error code

메소드 상세

__construct() 공개 메소드

On class construct.
public __construct ( string $msg, string | integer $code )
$msg string Error message
$code string | integer Error code

addAction() 공개 메소드

addAction('show info',array('info'=>true)) will result in link to &info=1.
public addAction ( string | array $key, string | array $descr )
$key string | array
$descr string | array

addMoreInfo() 공개 메소드

Call this to add additional information to the exception you are about to throw.
public addMoreInfo ( string $key, mixed $value )
$key string
$value mixed

addThis() 공개 메소드

Do not call this directly, exception() method takes care of that.
public addThis ( AbstractObject $obj )
$obj AbstractObject

backtrace() 공개 메소드

public backtrace ( integer $sh = null, array $backtrace = null ) : string
$sh integer
$backtrace array
리턴 string

by() 공개 메소드

Wrapping one exception inside another helps you to track problems better.
public by ( Exception $e )
$e Exception

collectBasicData() 공개 메소드

Collect basic data of exception.
public collectBasicData ( string | integer $code )
$code string | integer Error code

getAdditionalMessage() 공개 메소드

Undocumented.
public getAdditionalMessage ( ) : string
리턴 string

getDetailedHTML() 공개 메소드

Redefine this function to add additional HTML output.
public getDetailedHTML ( ) : string
리턴 string

getDocURL() 공개 메소드

Classes define a DOC constant which points to a on-line resource containing documentation for given class. This method will return full URL for the specified object.
public getDocURL ( AbstractObject $o ) : boolean | string
$o AbstractObject
리턴 boolean | string

getHTML() 공개 메소드

Returns HTML representation of the exception.
public getHTML ( ) : string
리턴 string

getHTMLActions() 공개 메소드

public getHTMLActions ( ) : string
리턴 string

getHTMLHeader() 공개 메소드

public getHTMLHeader ( ) : string
리턴 string

getHTMLSolution() 공개 메소드

public getHTMLSolution ( ) : string
리턴 string

getHeader() 공개 메소드

public getHeader ( ) : string
리턴 string

getMyFile() 공개 메소드

Return filename from backtrace log.
public getMyFile ( ) : string
리턴 string

getMyLine() 공개 메소드

Return line number from backtract log.
public getMyLine ( ) : string
리턴 string

getMyTrace() 공개 메소드

Return collected backtrace info.
public getMyTrace ( ) : array
리턴 array

getSolution() 공개 메소드

public getSolution ( ) : array
리턴 array

getText() 공개 메소드

Returns Textual representation of the exception.
public getText ( ) : string
리턴 string

init() 공개 메소드

Initialization.
public init ( )

print_r() 공개 메소드

Utility.
public print_r ( array | object | string $key, string $gs, string $ge, string $ls, string $le, string $ind = ' ' ) : null | string
$key array | object | string
$gs string
$ge string
$ls string
$le string
$ind string
리턴 null | string

setCode() 공개 메소드

Set error code
public setCode ( integer $code )
$code integer

프로퍼티 상세

$actions 공개적으로 프로퍼티

Array of available actions
public $actions

$api 공개적으로 프로퍼티

사용 중단: 4.3.0 Left for compatibility with ATK 4.2 and lower, use ->app instead
public $api

$app 공개적으로 프로퍼티

Always points to current Application
public $app

$by_exception 공개적으로 프로퍼티

Link to another exception which caused this one
public $by_exception

$code 공개적으로 프로퍼티

error code
public $code

$more_info 공개적으로 프로퍼티

Array with more info
public $more_info

$my_backtrace 공개적으로 프로퍼티

Backtrace array
public $my_backtrace

$name 공개적으로 프로퍼티

Classname of exception
public $name

$owner 공개적으로 프로퍼티

Link to object into which we added this object
public $owner

$recommendation 공개적으로 프로퍼티

Plain text recommendation on how the problem can be solved
public $recommendation

$shift 공개적으로 프로퍼티

Backtrace shift
public $shift