Exception: Interpol::RequestParamsParser::InvalidPathParamsError

Inherits:
ArgumentError
  • Object
show all
Defined in:
lib/interpol/request_params_parser.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.



250
251
252
253
# File 'lib/interpol/request_params_parser.rb', line 250

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.



248
249
250
# File 'lib/interpol/request_params_parser.rb', line 248

def invalid_params
  @invalid_params
end