PHP Class Kraken\Throwable\Exception

Inheritance: extends Exception
Afficher le fichier Open project: kraken-php/framework Class Usage Examples

Méthodes publiques

Méthode Description
__construct ( string $message = 'Unknown exception', Error | Exception | null $previous = null )
__toString ( ) : string
toStackString ( Error | Exception $ex ) : string Return Exception stack trace in string format.
toStackTrace ( Error | Exception $ex ) : string[] Return Exception stack trace in array format.
toString ( Error | Exception $ex ) : string Return Exception full trace in string format.
toThrowableString ( Error | Exception $ex ) : string Return Exception throwable trace in string format.
toThrowableTrace ( Error | Exception $ex ) : string[] Return Exception throwable trace in array format.
toTrace ( Error | Exception $ex ) : mixed Return Exception full trace in array format.

Method Details

__construct() public méthode

public __construct ( string $message = 'Unknown exception', Error | Exception | null $previous = null )
$message string
$previous Error | Exception | null

__toString() public méthode

public __toString ( ) : string
Résultat string

toStackString() public static méthode

Return Exception stack trace in string format.
public static toStackString ( Error | Exception $ex ) : string
$ex Error | Exception
Résultat string

toStackTrace() public static méthode

Return Exception stack trace in array format.
public static toStackTrace ( Error | Exception $ex ) : string[]
$ex Error | Exception
Résultat string[]

toString() public static méthode

Return Exception full trace in string format.
public static toString ( Error | Exception $ex ) : string
$ex Error | Exception
Résultat string

toThrowableString() public static méthode

Return Exception throwable trace in string format.
public static toThrowableString ( Error | Exception $ex ) : string
$ex Error | Exception
Résultat string

toThrowableTrace() public static méthode

Return Exception throwable trace in array format.
public static toThrowableTrace ( Error | Exception $ex ) : string[]
$ex Error | Exception
Résultat string[]

toTrace() public static méthode

Return Exception full trace in array format.
public static toTrace ( Error | Exception $ex ) : mixed
$ex Error | Exception
Résultat mixed