src/Block.php
protected function _exception($exception, $inEachHook = false)
    {
        if ($exception instanceof SkipException) {
            !$inEachHook ? $this->log()->type('skipped') : $this->_skipChildren($exception);
            return;
        }
        $this->_passed = false;
        $this->log()->type('errored');
        $this->log()->exception($exception);
    }
protected function _exception($exception, $inEachHook = false)
    {
        if ($exception instanceof SkipException) {
            !$inEachHook ? $this->log()->type('skipped') : $this->_skipChildren($exception);
            return;
        }
        $this->_passed = false;
        $this->log()->type('errored');
        $this->log()->exception($exception);
    }
protected function _exception ( $ exception , $ inEachHook = false ) { if ( $ exception instanceof SkipException ) { ! $ inEachHook ? $ this -> log ( ) -> type ( 'skipped' ) : $ this -> _skipChildren ( $ exception ) ; return ; } $ this -> _passed = false ; $ this -> log ( ) -> type ( 'errored' ) ; $ this -> log ( ) -> exception ( $ exception ) ; }
Manage catched exception.

@param Exception $exception  The catched exception.
@param boolean   $inEachHook Indicates if the exception occurs in a beforeEach/afterEach hook.
Manage catched exception .