Exception: Zypper::Upgraderepo::AlreadyUpgraded

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

Instance Method Summary collapse

Constructor Details

#initialize(version) ⇒ AlreadyUpgraded

Returns a new instance of AlreadyUpgraded.



131
132
133
# File 'lib/zypper/upgraderepo/utils.rb', line 131

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

Instance Method Details

#error_codeObject



135
136
137
# File 'lib/zypper/upgraderepo/utils.rb', line 135

def error_code
  2
end