PHP Class 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.
Afficher le fichier Open project: kraken-php/framework Class Usage Examples

Protected Properties

Свойство Type Description
$class string
$message string
$prev Error | Exception | ThrowableProxy | null

Méthodes publiques

Méthode Description
__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.

Method Details

__construct() public méthode

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

__destruct() public méthode

public __destruct ( )

__toString() public méthode

Format proxied Throwable as string.
public __toString ( ) : string
Résultat string

getCode() final public méthode

Return proxied Throwable code.
final public getCode ( ) : integer
Résultat integer

getFile() final public méthode

Return proxied Throwable file.
final public getFile ( ) : string
Résultat string

getLine() final public méthode

Return proxied Throwable code.
final public getLine ( ) : integer
Résultat integer

getMessage() final public méthode

Return proxied Throwable message.
final public getMessage ( ) : string
Résultat string

getPrevious() final public méthode

Return proxied Throwable previous element.
final public getPrevious ( ) : Error | Exception | null
Résultat Error | Exception | null

getTrace() final public méthode

Return proxied Throwable trace.
final public getTrace ( ) : array
Résultat array

getTraceAsString() final public méthode

Return proxied Throwable trace in string format.
final public getTraceAsString ( ) : string
Résultat string

toThrowable() public méthode

Return proxied Throwable.
public toThrowable ( ) : Error | Exception
Résultat Error | Exception

Property Details

$class protected_oe property

protected string $class
Résultat string

$message protected_oe property

protected string $message
Résultat string

$prev protected_oe property

protected Error,Kraken\Throwable|Exception,Kraken\Throwable|ThrowableProxy,Kraken\Throwable|null $prev
Résultat Error | Exception | ThrowableProxy | null