Exception: Zypper::Upgraderepo::AlreadyUpgraded

Inherits:
StandardError
  • Object
show all
Defined in:
lib/zypper/upgraderepo/utils.rb

Overview

The system doesn’t require any upgrade.

Instance Method Summary collapse

Constructor Details

#initialize(version) ⇒ AlreadyUpgraded

Returns a new instance of AlreadyUpgraded.



241
242
243
# File 'lib/zypper/upgraderepo/utils.rb', line 241

def initialize(version)
  super "The system is already upgraded to the #{version} version"
end

Instance Method Details

#error_codeObject



245
246
247
# File 'lib/zypper/upgraderepo/utils.rb', line 245

def error_code
  2
end