PHP Class Kraken\Throwable\Throwable

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

Public Methods

Method Description
getThrowableData ( Error | Exception $ex, integer $offset ) : string[] Return throwable data in array format.
getThrowableStack ( Error | Exception $ex, &$data = [], integer $offset ) : mixed Return throwable stack in recursive array format.
parseThrowableMessage ( string[] $ex ) : string Parse Throwable message to proper format.

Protected Methods

Method Description
getBasename ( string $class ) : string
getTraceElements ( Error | Exception $ex, integer $offset ) : string[]
parseArgs ( mixed[] $args ) : string
parseTraceElement ( mixed[] $element ) : string

Method Details

getBasename() protected static method

protected static getBasename ( string $class ) : string
$class string
return string

getThrowableData() public static method

Return throwable data in array format.
public static getThrowableData ( Error | Exception $ex, integer $offset ) : string[]
$ex Error | Exception
$offset integer
return string[]

getThrowableStack() public static method

Return throwable stack in recursive array format.
public static getThrowableStack ( Error | Exception $ex, &$data = [], integer $offset ) : mixed
$ex Error | Exception
$offset integer
return mixed

getTraceElements() protected static method

protected static getTraceElements ( Error | Exception $ex, integer $offset ) : string[]
$ex Error | Exception
$offset integer
return string[]

parseArgs() protected static method

protected static parseArgs ( mixed[] $args ) : string
$args mixed[]
return string

parseThrowableMessage() public static method

Parse Throwable message to proper format.
public static parseThrowableMessage ( string[] $ex ) : string
$ex string[]
return string

parseTraceElement() protected static method

protected static parseTraceElement ( mixed[] $element ) : string
$element mixed[]
return string