Exception: ApiRecipes::RouteNameClashWithExistentMethod
- Inherits:
-
Exception
- Object
- Exception
- ApiRecipes::RouteNameClashWithExistentMethod
- Defined in:
- lib/api_recipes/exceptions.rb
Instance Method Summary collapse
-
#initialize(endpoint_name, route_name) ⇒ RouteNameClashWithExistentMethod
constructor
A new instance of RouteNameClashWithExistentMethod.
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) = "can't define route '#{route_name}' method in endpoint '#{endpoint_name}' because method '#{route_name}' has already been defined" super() end |