Exception: ActionDispatch::ParamError

Inherits:
Http::Parameters::ParseError show all
Defined in:
lib/action_dispatch/http/param_error.rb

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(message = nil) ⇒ ParamError

Returns a new instance of ParamError.



5
6
7
# File 'lib/action_dispatch/http/param_error.rb', line 5

def initialize(message = nil)
  super
end

Class Method Details

.===(other) ⇒ Object



9
10
11
12
13
14
15
# File 'lib/action_dispatch/http/param_error.rb', line 9

def self.===(other)
  super || (
    defined?(Rack::Utils::ParameterTypeError) && Rack::Utils::ParameterTypeError === other ||
    defined?(Rack::Utils::InvalidParameterError) && Rack::Utils::InvalidParameterError === other ||
    defined?(Rack::QueryParser::ParamsTooDeepError) && Rack::QueryParser::ParamsTooDeepError === other
  )
end