You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There are currently 339 calls to handle_error() throughout all resource APIs. We can improve this significantly by removing potentially a couple thousand lines of code from all resource APIs that define their own exception handling block and make a call to handle_error() and by adding a global error handler to ResourceApiBase.
error do
handle_error(env['sinatra.error'])
end
This method would be executed any time an exception is raised from a route block or a filter. This means we should be able to remove all exception handlers (begin...rescue) from all resource APIs and allow any exception to bubble up to error() in ResourceApiBase.
There are currently 339 calls to handle_error() throughout all resource APIs. We can improve this significantly by removing potentially a couple thousand lines of code from all resource APIs that define their own exception handling block and make a call to handle_error() and by adding a global error handler to ResourceApiBase.
This method would be executed any time an exception is raised from a route block or a filter. This means we should be able to remove all exception handlers (begin...rescue) from all resource APIs and allow any exception to bubble up to error() in ResourceApiBase.
http://www.sinatrarb.com/intro.html#Error
The text was updated successfully, but these errors were encountered: