Class: Installation::AutoinstIssues::Issue
- Inherits:
-
Object
- Object
- Installation::AutoinstIssues::Issue
- Includes:
- Yast::I18n
- Defined in:
- library/general/src/lib/installation/autoinst_issues/issue.rb
Overview
Base class for autoinstallation problems.
Installation::AutoinstIssues offers an API to register and report AutoYaST problems.
Direct Known Subclasses
Instance Attribute Summary collapse
-
#section ⇒ #parent, #section_name
readonly
Section where it was detected (see Installation::AutoinstProfile).
Instance Method Summary collapse
-
#fatal? ⇒ Boolean
Determine whether an error is fatal.
-
#message ⇒ String
Return the error message to be displayed.
-
#severity ⇒ Symbol
Return problem severity.
-
#warn? ⇒ Boolean
Determine whether an error is just a warning.
Instance Attribute Details
#section ⇒ #parent, #section_name (readonly)
Returns Section where it was detected (see Installation::AutoinstProfile).
11 12 13 |
# File 'library/general/src/lib/installation/autoinst_issues/issue.rb', line 11 def section @section end |
Instance Method Details
#fatal? ⇒ Boolean
Determine whether an error is fatal
This is just a convenience method.
37 38 39 |
# File 'library/general/src/lib/installation/autoinst_issues/issue.rb', line 37 def fatal? severity == :fatal end |
#message ⇒ String
Return the error message to be displayed
28 29 30 |
# File 'library/general/src/lib/installation/autoinst_issues/issue.rb', line 28 def raise NotImplementedError end |
#severity ⇒ Symbol
Return problem severity
- :fatal: abort the installation.
- :warn: display a warning.
20 21 22 |
# File 'library/general/src/lib/installation/autoinst_issues/issue.rb', line 20 def severity raise NotImplementedError end |
#warn? ⇒ Boolean
Determine whether an error is just a warning
This is just a convenience method.
46 47 48 |
# File 'library/general/src/lib/installation/autoinst_issues/issue.rb', line 46 def warn? severity == :warn end |