Exception: Padrino::Routing::BlockArityError

Inherits:
ArgumentError
  • Object
show all
Defined in:
lib/padrino-core/application/routing.rb

Overview

Raised when block arity was nonzero and was not same with captured parameter length.

Instance Method Summary collapse

Constructor Details

#initialize(path, block_arity, required_arity) ⇒ BlockArityError

Returns a new instance of BlockArityError.



27
28
29
# File 'lib/padrino-core/application/routing.rb', line 27

def initialize(path, block_arity, required_arity)
  super "route block arity does not match path '#{path}' (#{block_arity} for #{required_arity})"
end