Exception: Bootloader::UnsupportedOption
- Inherits:
-
RuntimeError
- Object
- RuntimeError
- Bootloader::UnsupportedOption
- 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
-
#option ⇒ Object
readonly
Returns the value of attribute option.
Instance Method Summary collapse
-
#initialize(option) ⇒ UnsupportedOption
constructor
A new instance of UnsupportedOption.
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
#option ⇒ Object (readonly)
Returns the value of attribute option.
57 58 59 |
# File 'src/lib/bootloader/exceptions.rb', line 57 def option @option end |