module Roda::RodaPlugins::ErrorHandler
def self.configure(app, opts={}, &block)
If a block is given, automatically call the +error+ method on
def self.configure(app, opts={}, &block) app.opts[:error_handler_classes] = (opts[:classes] || app.opts[:error_handler_classes] || DEFAULT_ERROR_HANDLER_CLASSES).dup.freeze if block app.error(&block) end end
def self.load_dependencies(app, *)
def self.load_dependencies(app, *) app.plugin :_after_hook end