Exception: Flame::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.



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

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

Instance Method Details

#messageObject



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

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