protected function _exception($exception, $inEachHook = false) { switch (get_class($exception)) { case 'Kahlan\\SkipException': if ($inEachHook) { $this->log()->type('skipped'); } else { $this->_skipChildren($exception); } break; default: $this->_passed = false; $this->log()->type('errored'); $this->log()->exception($exception); break; } }