Exception: Bundler::Fetcher::AuthenticationForbiddenError

Inherits:
HTTPError show all
Defined in:
lib/bundler/fetcher.rb

Overview

This error is raised if HTTP authentication is correct, but lacks necessary permissions.

Instance Method Summary collapse

Methods inherited from HTTPError

#filter_uri

Methods inherited from BundlerError

all_errors, status_code

Constructor Details

#initialize(remote_uri) ⇒ AuthenticationForbiddenError

Returns a new instance of AuthenticationForbiddenError.



68
69
70
71
72
# File 'lib/bundler/fetcher.rb', line 68

def initialize(remote_uri)
  remote_uri = filter_uri(remote_uri)
  super "Access token could not be authenticated for #{remote_uri}.\n" \
    "Make sure it's valid and has the necessary scopes configured."
end