src/Leevel/Kernel/Runtime.php
protected function prepareException(Exception $e): Exception
    {
        if ($e instanceof EntityNotFoundException) {
            $e = new NotFoundHttpException($e->getMessage(), $e->getCode());
        }

        return $e;
    }
protected function prepareException(Exception $e): Exception
    {
        if ($e instanceof EntityNotFoundException) {
            $e = new NotFoundHttpException($e->getMessage(), $e->getCode());
        }

        return $e;
    }
准备异常.

@param \Exception $e

@return \Exception