Exception: ApiRecipes::RouteNameClashWithExistentMethod

Inherits:
Exception
  • Object
show all
Defined in:
lib/api_recipes/exceptions.rb

Instance Method Summary collapse

Constructor Details

#initialize(endpoint_name, route_name) ⇒ RouteNameClashWithExistentMethod

Returns a new instance of RouteNameClashWithExistentMethod.



79
80
81
82
# File 'lib/api_recipes/exceptions.rb', line 79

def initialize(endpoint_name, route_name)
  message = "can't define route '#{route_name}' method in endpoint '#{endpoint_name}' because method '#{route_name}' has already been defined"
  super(message)
end