Exception: Bootloader::BrokenConfiguration
- Inherits:
-
RuntimeError
- Object
- RuntimeError
- Bootloader::BrokenConfiguration
- Includes:
- Yast::I18n
- Defined in:
- src/lib/bootloader/exceptions.rb
Overview
universal exception when unrecoverable error found during parsing configuration holds in #reason translated message what exactly is broken.
Direct Known Subclasses
Instance Attribute Summary collapse
-
#reason ⇒ Object
readonly
Returns the value of attribute reason.
Instance Method Summary collapse
-
#initialize(msg) ⇒ BrokenConfiguration
constructor
A new instance of BrokenConfiguration.
Constructor Details
#initialize(msg) ⇒ BrokenConfiguration
Returns a new instance of BrokenConfiguration.
22 23 24 25 26 27 28 29 |
# File 'src/lib/bootloader/exceptions.rb', line 22 def initialize(msg) @reason = msg textdomain "bootloader" # TRANSLATORS: %s is translated description of error super _("Error reading the bootloader configuration files. " \ "Please use YaST2 bootloader to fix it. Details: %s") % msg end |
Instance Attribute Details
#reason ⇒ Object (readonly)
Returns the value of attribute reason.
20 21 22 |
# File 'src/lib/bootloader/exceptions.rb', line 20 def reason @reason end |