Exception: Interpol::InvalidPathParamsError
- Inherits:
-
ArgumentError
- Object
- ArgumentError
- Interpol::InvalidPathParamsError
- Defined in:
- lib/interpol/errors.rb
Overview
Raised when the path_params are not part of the endpoint route.
Instance Attribute Summary collapse
-
#invalid_params ⇒ Object
readonly
Returns the value of attribute invalid_params.
Instance Method Summary collapse
-
#initialize(*invalid_params) ⇒ InvalidPathParamsError
constructor
A new instance of InvalidPathParamsError.
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_params ⇒ Object (readonly)
Returns the value of attribute invalid_params.
58 59 60 |
# File 'lib/interpol/errors.rb', line 58 def invalid_params @invalid_params end |