Exception: Interpol::InvalidPathParamsError

Inherits:
ArgumentError
  • Object
show all
Defined in:
lib/interpol/errors.rb

Overview

Raised when the path_params are not part of the endpoint route.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(*invalid_params) ⇒ InvalidPathParamsError

Returns a new instance of InvalidPathParamsError.



60
61
62
63
# File 'lib/interpol/errors.rb', line 60

def initialize(*invalid_params)
  @invalid_params = invalid_params
  super("The path params #{invalid_params.join(', ')} are not in the route")
end

Instance Attribute Details

#invalid_paramsObject (readonly)

Returns the value of attribute invalid_params.



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

def invalid_params
  @invalid_params
end