N98\Magento\Command\Developer\Module\Rewrite\ClassExistsChecker::exceptionContext PHP Method

exceptionContext() private method

private exceptionContext ( $context, Exception $ex ) : boolean
$context
$ex Exception
return boolean
    private function exceptionContext($context, Exception $ex)
    {
        /** @var $terminator AutoloadHandler */
        $terminator = $context->terminator;
        $terminator->reset();
        if ($ex !== $context->lastException) {
            $message = sprintf('Exception when checking for class %s existence', $context->className);
            throw new ClassExistsThrownException($message, 0, $ex);
        }
        return false;
    }