Skip to content


Subversion checkout URL

You can clone with
Download ZIP


DoctrineParamConverter shouldn't throw NotFoundHttpException #171

ragtek opened this Issue · 2 comments

2 participants


I think it would be nice, if the NotFoundHttpException would be optional, so we're able to get into the controller and run own code (e.g. logging and showing userfriendly error message)


    public function showAction(Link $link)
        if (!$link) {
            CoreLogger::log('not found link');
            throw $this->createNotFoundException('Unable to find Link entity.');

This will throw the default (not very userfriendly ) symfony2 error and it won't allow me to run the log code

Oops! An Error Occurred

The server returned a "404 Not Found
Something is broken. Please e-mail us at [email] and let us know what you were doing when this error occurred. We will fix it as soon as possible. Sorry for any inconvenience caused.

Maybe this is a better description of what i want to do:!topic/symfony2/qODpfGQ9NjU


Can the method to public function showAction(Link $link = null).


THX very much

@ragtek ragtek closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.