Handling of uncaught exceptions is done by the error handler registered with Appication#error_handler
. All applications are pre-configured to use a simple handler that wraps any exception in an InternalServerError
response.
This behavior may be customized by registering an error handler with the application like this:
Praxis::Application.configure do |application|
application.error_handler = MyErrorHandler.new
end