Exception: Flame::UnexpectedTypeOfHookError
- Inherits:
-
StandardError
- Object
- StandardError
- Flame::UnexpectedTypeOfHookError
- Defined in:
- lib/flame/errors.rb
Overview
Error for Flame::Router.find_path
Instance Method Summary collapse
-
#initialize(hook, route) ⇒ UnexpectedTypeOfHookError
constructor
A new instance of UnexpectedTypeOfHookError.
- #message ⇒ Object
Constructor Details
#initialize(hook, route) ⇒ UnexpectedTypeOfHookError
Returns a new instance of UnexpectedTypeOfHookError.
83 84 85 86 |
# File 'lib/flame/errors.rb', line 83 def initialize(hook, route) @hook = hook @route = route end |
Instance Method Details
#message ⇒ Object
88 89 90 91 |
# File 'lib/flame/errors.rb', line 88 def "Unexpected hook-block class '#{@hook.class}'" \ " in route '#{@route}'" end |