method

status_code

ruby latest stable - Class: Bundler::BundlerError

Method not available on this version

This method is only available on newer versions. The first available version (v2_6_3) is shown here.

status_code(code)
public

No documentation available.

# File lib/bundler/errors.rb, line 5
    def self.status_code(code)
      define_method(:status_code) { code }
      if match = BundlerError.all_errors.find {|_k, v| v == code }
        error, _ = match
        raise ArgumentError,
          "Trying to register #{self} for status code #{code} but #{error} is already registered"
      end
      BundlerError.all_errors[self] = code
    end