Sha256: db9056fd95afece24de755cd3f73353d6f6c12e54b15587e9581509ea2433149

Contents?: true

Size: 694 Bytes

Versions: 5

Compression:

Stored size: 694 Bytes

Contents

# frozen_string_literal: true

module ActionDispatch
  class ParamError < ActionDispatch::Http::Parameters::ParseError
    def initialize(message = nil)
      super
    end

    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
  end

  class ParameterTypeError < ParamError
  end

  class InvalidParameterError < ParamError
  end

  class ParamsTooDeepError < ParamError
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
actionpack-8.0.1 lib/action_dispatch/http/param_error.rb
actionpack-8.0.0.1 lib/action_dispatch/http/param_error.rb
actionpack-8.0.0 lib/action_dispatch/http/param_error.rb
actionpack-8.0.0.rc2 lib/action_dispatch/http/param_error.rb
actionpack-8.0.0.rc1 lib/action_dispatch/http/param_error.rb