Exception: Bootloader::UnsupportedOption

Inherits:
RuntimeError
  • Object
show all
Includes:
Yast::I18n
Defined in:
src/lib/bootloader/exceptions.rb

Overview

Represent unsupported value in given option. Used mainly when value contain something that bootloader does not understand yet.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(option) ⇒ UnsupportedOption

Returns a new instance of UnsupportedOption.



59
60
61
62
63
64
65
66
67
# File 'src/lib/bootloader/exceptions.rb', line 59

def initialize(option)
  @reason = option
  textdomain "bootloader"

  # TRANSLATORS: %s is name of option that has unsupported value
  super _("Option '%s' contains an unrecognized value.\nYaST Bootloader cannot handle it.\n" \
          "Either the whole bootloader configuration needs to be proposed again\n" \
          "or YaST must quit and you can edit it manually.") % option
end

Instance Attribute Details

#optionObject (readonly)

Returns the value of attribute option.



57
58
59
# File 'src/lib/bootloader/exceptions.rb', line 57

def option
  @option
end