class Filterameter::Exceptions::UndeclaredParameterError

Undeclared Parameter Error

Class UndeclaredParameterError is raised when a request contains filter parameters that have not been declared. Configuration setting `action_on_undeclared_parameters` determines whether or not the exception is raised.

Attributes

keys[R]

Public Class Methods

new(keys) click to toggle source
# File lib/filterameter/exceptions/undeclared_parameter_error.rb, line 12
def initialize(keys)
  @keys = keys
end

Public Instance Methods

message() click to toggle source
# File lib/filterameter/exceptions/undeclared_parameter_error.rb, line 16
def message
  "The following filter parameter(s) have not been declared: #{keys}"
end