module Sinatra::Errorcodes
Constants
- VERSION
Public Class Methods
registered(app)
click to toggle source
# File lib/sinatra/errorcodes.rb, line 12 def self.registered(app) app.set :halt_with_errors, false app.error ErrorBase do |e| return unless settings.halt_with_errors halt e.code, e.msg end end