aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_dispatch/middleware/exception_wrapper.rb
Commit message (Collapse)AuthorAgeFilesLines
* Raise ActionController::BadRequest for malformed parameter hashes.Andrew White2012-05-201-1/+2
| | | | | | | | | | | | | | Currently Rack raises a TypeError when it encounters a malformed or ambiguous hash like `foo[]=bar&foo[4]=bar`. Rather than pass this through to the application this commit captures the exception and re-raises it using a new ActionController::BadRequest exception. The new ActionController::BadRequest exception returns a 400 error instead of the 500 error that would've been returned by the original TypeError. This allows exception notification libraries to ignore these errors if so desired. Closes #3051
* Move require to where it's neededSantiago Pastorino2012-05-111-1/+2
|
* Raise a rescuable exception when Rails doesn't know what to do with the ↵Steven Soroka2012-05-061-0/+1
| | | | format, rather than responding with a head :not_acceptable (406)
* Split ShowExceptions responsibilities in two middlewares.José Valim2011-12-011-0/+1
|
* Add an ExceptionWrapper that wraps an exception and provide convenience helpers.José Valim2011-12-011-0/+77