PHP 클래스 Kraken\Throwable\ThrowableProxy

Its main purpose is to create a placeholders for Throwable most needed data discarding all not needed traces. TLDR: This class should be used in design patterns which logic represents failures as throwables, and does not necessarily need stack information.
파일 보기 프로젝트 열기: kraken-php/framework 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$class string
$message string
$prev Error | Exception | ThrowableProxy | null

공개 메소드들

메소드 설명
__construct ( Error | Exception | string[] | string $throwableOrMessage )
__destruct ( )
__toString ( ) : string Format proxied Throwable as string.
getCode ( ) : integer Return proxied Throwable code.
getFile ( ) : string Return proxied Throwable file.
getLine ( ) : integer Return proxied Throwable code.
getMessage ( ) : string Return proxied Throwable message.
getPrevious ( ) : Error | Exception | null Return proxied Throwable previous element.
getTrace ( ) : array Return proxied Throwable trace.
getTraceAsString ( ) : string Return proxied Throwable trace in string format.
toThrowable ( ) : Error | Exception Return proxied Throwable.

메소드 상세

__construct() 공개 메소드

public __construct ( Error | Exception | string[] | string $throwableOrMessage )
$throwableOrMessage Error | Exception | string[] | string

__destruct() 공개 메소드

public __destruct ( )

__toString() 공개 메소드

Format proxied Throwable as string.
public __toString ( ) : string
리턴 string

getCode() 최종 공개 메소드

Return proxied Throwable code.
final public getCode ( ) : integer
리턴 integer

getFile() 최종 공개 메소드

Return proxied Throwable file.
final public getFile ( ) : string
리턴 string

getLine() 최종 공개 메소드

Return proxied Throwable code.
final public getLine ( ) : integer
리턴 integer

getMessage() 최종 공개 메소드

Return proxied Throwable message.
final public getMessage ( ) : string
리턴 string

getPrevious() 최종 공개 메소드

Return proxied Throwable previous element.
final public getPrevious ( ) : Error | Exception | null
리턴 Error | Exception | null

getTrace() 최종 공개 메소드

Return proxied Throwable trace.
final public getTrace ( ) : array
리턴 array

getTraceAsString() 최종 공개 메소드

Return proxied Throwable trace in string format.
final public getTraceAsString ( ) : string
리턴 string

toThrowable() 공개 메소드

Return proxied Throwable.
public toThrowable ( ) : Error | Exception
리턴 Error | Exception

프로퍼티 상세

$class 보호되어 있는 프로퍼티

protected string $class
리턴 string

$message 보호되어 있는 프로퍼티

protected string $message
리턴 string

$prev 보호되어 있는 프로퍼티

protected Error,Kraken\Throwable|Exception,Kraken\Throwable|ThrowableProxy,Kraken\Throwable|null $prev
리턴 Error | Exception | ThrowableProxy | null