Exception: SemverDialects::UnsupportedPackageTypeError

Inherits:
Error
  • Object
show all
Defined in:
lib/semver_dialects.rb

Overview

rubocop:todo Style/Documentation

Instance Method Summary collapse

Constructor Details

#initialize(pkg_type) ⇒ UnsupportedPackageTypeError

Returns a new instance of UnsupportedPackageTypeError.



23
24
25
26
# File 'lib/semver_dialects.rb', line 23

def initialize(pkg_type)
  super
  @pkg_type = pkg_type
end

Instance Method Details

#messageObject



28
29
30
31
# File 'lib/semver_dialects.rb', line 28

def message
  supported_types = SemverDialects.supported_package_types.join(', ')
  "unsupported package type '#{@pkg_type}'. Supported types are: #{supported_types}"
end