I am trying to throw exceptions and I am doing the following:
use Symfony\\Component\\HttpKernel\\Exception\\HttpNotFoundException; use Symfony\\Component\\S
Try:
use Symfony\Component\HttpKernel\Exception\NotFoundHttpException;
and
throw new NotFoundHttpException("Page not found");
I think you got it a bit backwards :-)