Exception: Flame::UnexpectedTypeOfAfterError

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(after, route) ⇒ UnexpectedTypeOfAfterError

Returns a new instance of UnexpectedTypeOfAfterError.



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

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

Instance Method Details

#messageObject



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

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