Class: Installation::AutoinstIssues::InvalidValue
- Includes:
- Yast::Logger
- Defined in:
- library/general/src/lib/installation/autoinst_issues/invalid_value.rb
Overview
Represents an AutoYaST situation where an invalid value was given.
Instance Attribute Summary collapse
-
#attribute ⇒ Object
readonly
Returns the value of attribute attribute.
-
#description ⇒ Object
readonly
Returns the value of attribute description.
-
#section ⇒ Object
readonly
Returns the value of attribute section.
-
#severity ⇒ Object
readonly
Returns the value of attribute severity.
-
#value ⇒ Object
readonly
Returns the value of attribute value.
Instance Method Summary collapse
-
#initialize(section, attribute, value, description, severity = :warn) ⇒ InvalidValue
constructor
A new instance of InvalidValue.
-
#message ⇒ String
Return the error message to be displayed.
Methods inherited from Issue
Constructor Details
#initialize(section, attribute, value, description, severity = :warn) ⇒ InvalidValue
Returns a new instance of InvalidValue.
37 38 39 40 41 42 43 44 45 46 |
# File 'library/general/src/lib/installation/autoinst_issues/invalid_value.rb', line 37 def initialize(section, attribute, value, description, severity = :warn) super() textdomain "base" @section = section @attribute = attribute @value = value @description = description @severity = severity end |
Instance Attribute Details
#attribute ⇒ Object (readonly)
Returns the value of attribute attribute.
29 30 31 |
# File 'library/general/src/lib/installation/autoinst_issues/invalid_value.rb', line 29 def attribute @attribute end |
#description ⇒ Object (readonly)
Returns the value of attribute description.
29 30 31 |
# File 'library/general/src/lib/installation/autoinst_issues/invalid_value.rb', line 29 def description @description end |
#section ⇒ Object (readonly)
Returns the value of attribute section.
29 30 31 |
# File 'library/general/src/lib/installation/autoinst_issues/invalid_value.rb', line 29 def section @section end |
#severity ⇒ Object (readonly)
Returns the value of attribute severity.
29 30 31 |
# File 'library/general/src/lib/installation/autoinst_issues/invalid_value.rb', line 29 def severity @severity end |
#value ⇒ Object (readonly)
Returns the value of attribute value.
29 30 31 |
# File 'library/general/src/lib/installation/autoinst_issues/invalid_value.rb', line 29 def value @value end |
Instance Method Details
#message ⇒ String
Return the error message to be displayed
52 53 54 55 56 57 58 |
# File 'library/general/src/lib/installation/autoinst_issues/invalid_value.rb', line 52 def # TRANSLATORS: # 'value' is a generic value (number or string) 'attribute' is an AutoYaST element # 'description' has already been translated in other modules. format(_("Invalid value '%{value}' for attribute '%{attribute}': %{description}"), value: @value, attribute: @attribute, description: @description) end |