FriendsOfSymfony/FOSRestBundle — pull request #768 by gfreeau (2014-05-18 17:41:48+00:00)
Title: Added exception to parameters for serializer in exception controller

This will allow the user to create a custom exception wrapper to show things like a stack trace if they want. Discussed in #766.

Something else to consider is passing a flag if the environment is debug or not but it could just as easily be done with a service definition for a custom handler with %kernel.environment% and then choosing to show a trace or not.