Exception: Hemp::Routing::RouteSyntaxError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/hemp/routing/route_syntax_error.rb

Instance Method Summary collapse

Constructor Details

#initialize(method_path, custom_message = "") ⇒ RouteSyntaxError

Returns a new instance of RouteSyntaxError.



4
5
6
7
# File 'lib/hemp/routing/route_syntax_error.rb', line 4

def initialize(method_path, custom_message = "")
  super "Error while parsing routes. "\
  "See line containing - '#{method_path}'. #{custom_message}"
end