Exception: Flame::Errors::UnexpectedTypeOfHookError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/flame/errors.rb

Overview

Error for Flame::Router.find_path

Instance Method Summary collapse

Constructor Details

#initialize(hook, route) ⇒ UnexpectedTypeOfHookError

Returns a new instance of UnexpectedTypeOfHookError.



84
85
86
87
# File 'lib/flame/errors.rb', line 84

def initialize(hook, route)
	@hook = hook
	@route = route
end

Instance Method Details

#messageObject



89
90
91
92
# File 'lib/flame/errors.rb', line 89

def message
	"Unexpected hook-block class '#{@hook.class}'" \
	" in route '#{@route}'"
end