lib/roda/plugins/error_handler.rb
def error(&block)
          define_method(:handle_error, &block)
          alias_method(:handle_error, :handle_error)
          private :handle_error
        end
# Install the given block as the error handler, so that if routing
# the request raises an exception, the block will be called with
# the exception in the scope of the Roda instance.
Install the given block as the error handler, so that if routing
the request raises an exception, the block will be called with
the exception in the scope of the Roda instance.
Install the given block as the error handler so that if routing the request raises an exception the block will be called with the exception in the scope of the Roda instance .
def error(&block)
          define_method(:handle_error, &block)
          alias_method(:handle_error, :handle_error)
          private :handle_error
        end
def error ( & block ) define_method ( :handle_error , & block ) alias_method ( :handle_error , :handle_error ) private :handle_error end
Install the given block as the error handler, so that if routing
the request raises an exception, the block will be called with
the exception in the scope of the Roda instance.
Install the given block as the error handler so that if routing the request raises an exception the block will be called with the exception in the scope of the Roda instance .
block