PHP Class Webmozart\Console\UI\Component\ExceptionTrace

Since: 1.0
Author: Bernhard Schussek ([email protected])
Inheritance: implements Webmozart\Console\UI\Component
Show file Open project: webmozart/console Class Usage Examples

Public Methods

Method Description
__construct ( Exception $exception ) Creates a renderer for the given exception.
render ( IO $io, integer $indentation ) Renders the exception trace.

Private Methods

Method Description
printBox ( IO $io, Exception $exception )
printTrace ( IO $io, Exception $exception )
renderException ( IO $io, Exception $exception )

Method Details

__construct() public method

Creates a renderer for the given exception.
public __construct ( Exception $exception )
$exception Exception The exception to render.

render() public method

Renders the exception trace.
public render ( IO $io, integer $indentation )
$io Webmozart\Console\Api\IO\IO The I/O.
$indentation integer The number of spaces to indent.