Exception: Bootloader::BrokenConfiguration

Inherits:
RuntimeError
  • Object
show all
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

InvalidSerialConsoleArguments

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#reasonObject (readonly)

Returns the value of attribute reason.



20
21
22
# File 'src/lib/bootloader/exceptions.rb', line 20

def reason
  @reason
end