PHP Class Kraken\Throwable\Exception

Inheritance: extends Exception
Datei anzeigen Open project: kraken-php/framework Class Usage Examples

Public Methods

Method 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 method

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

__toString() public method

public __toString ( ) : string
return string

toStackString() public static method

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

toStackTrace() public static method

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

toString() public static method

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

toThrowableString() public static method

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

toThrowableTrace() public static method

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

toTrace() public static method

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