Exception: Bundler::Alive::Client::GitlabApi::AccessTokenNotFoundError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/bundler/alive/client/gitlab_api.rb

Overview

Access token isn't set error

Instance Method Summary collapse

Constructor Details

#initialize(_message = nil) ⇒ AccessTokenNotFoundError

Returns a new instance of AccessTokenNotFoundError.



21
22
23
24
25
26
# File 'lib/bundler/alive/client/gitlab_api.rb', line 21

def initialize(_message = nil)
  message = "Environment variable #{ACCESS_TOKEN_ENV_NAME} is not set."\
            " Need to set GitLab Personal Access Token to be authenticated at gitlab.com API."\
            " See: https://docs.gitlab.com/ee/user/profile/personal_access_tokens.html"
  super(message)
end