Phprest\Entity\DebugError::__construct PHP Method

__construct() public method

public __construct ( Exception $exception )
$exception Exception
    public function __construct(\Exception $exception)
    {
        parent::__construct($exception);
        $this->fileName = $exception->getFile();
        $this->line = $exception->getLine();
        $this->trace = $exception->getTraceAsString();
    }