Exception: Bootloader::BrokenByPathDeviceName
- Inherits:
-
RuntimeError
- Object
- RuntimeError
- Bootloader::BrokenByPathDeviceName
- Includes:
- Yast::I18n
- Defined in:
- src/lib/bootloader/exceptions.rb
Overview
Specialized exception for invalid by-path device names (bsc#1122008, bsc#1116305)
Instance Attribute Summary collapse
-
#dev_name ⇒ Object
readonly
Returns the value of attribute dev_name.
Instance Method Summary collapse
-
#initialize(dev_name) ⇒ BrokenByPathDeviceName
constructor
A new instance of BrokenByPathDeviceName.
Constructor Details
#initialize(dev_name) ⇒ BrokenByPathDeviceName
Returns a new instance of BrokenByPathDeviceName.
38 39 40 41 42 43 44 45 46 47 48 49 50 |
# File 'src/lib/bootloader/exceptions.rb', line 38 def initialize(dev_name) @dev_name = dev_name textdomain "bootloader" # TRANSLATORS: %s is the device name super _("Error reading the bootloader configuration files:\n" \ "Invalid device name %s\n" \ "\n" \ "This by-path device name may have changed after a reboot\n" \ "if the hardware or kernel parameters changed.\n" \ "\n" \ "Please use YaST2 bootloader to fix this.\n") % dev_name end |
Instance Attribute Details
#dev_name ⇒ Object (readonly)
Returns the value of attribute dev_name.
36 37 38 |
# File 'src/lib/bootloader/exceptions.rb', line 36 def dev_name @dev_name end |