Exception: Bundler::Alive::SourceCodeRepositoryUrl::UnSupportedUrl

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

Overview

No supported URL Error

Instance Method Summary collapse

Constructor Details

#initialize(url:, name:) ⇒ UnSupportedUrl

Parameters:

  • :url (String)
  • :name (String)


40
41
42
43
44
45
46
47
48
49
50
# File 'lib/bundler/alive/source_code_repository_url.rb', line 40

def initialize(url:, name:)
  decorated_url = if url.nil? || url == ""
                    "(blank)"
                  else
                    url
                  end
  message = "[#{name}] is not support URL: #{decorated_url}"
  super(message)

  freeze
end