Exception: Flame::RouteNotFoundError

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(ctrl, method) ⇒ RouteNotFoundError

Returns a new instance of RouteNotFoundError.



58
59
60
61
# File 'lib/flame/errors.rb', line 58

def initialize(ctrl, method)
	@ctrl = ctrl
	@method = method
end

Instance Method Details

#messageObject



63
64
65
66
# File 'lib/flame/errors.rb', line 63

def message
	"Route with controller '#{@ctrl}' and method '#{@method}'" \
	' not found in application routes'
end