Exception: Artifactory::Error::InvalidBuildType

Inherits:
ArtifactoryError show all
Defined in:
lib/artifactory/errors.rb

Overview

A general connection error with a more informative message

Instance Method Summary collapse

Constructor Details

#initialize(given_type) ⇒ InvalidBuildType

Returns a new instance of InvalidBuildType.



46
47
48
49
50
51
52
53
54
55
# File 'lib/artifactory/errors.rb', line 46

def initialize(given_type)
  super <<~EOH
    '#{given_type}' is not a valid build type.

    Valid build types include:

        #{Resource::Build::BUILD_TYPES.join("\n    ")}"

  EOH
end