Class: Installation::AutoinstIssues::Issue

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

InvalidValue, MissingValue

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#section#parent, #section_name (readonly)

Returns Section where it was detected (see Installation::AutoinstProfile).

Returns:



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.

Returns:

  • (Boolean)


37
38
39
# File 'library/general/src/lib/installation/autoinst_issues/issue.rb', line 37

def fatal?
  severity == :fatal
end

#messageString

Return the error message to be displayed

Returns:

  • (String)

    Error message

Raises:

  • NotImplementedError



28
29
30
# File 'library/general/src/lib/installation/autoinst_issues/issue.rb', line 28

def message
  raise NotImplementedError
end

#severitySymbol

Return problem severity

  • :fatal: abort the installation.
  • :warn: display a warning.

Returns:

  • (Symbol)

    Issue severity (:warn, :fatal)

Raises:

  • NotImplementedError



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.

Returns:

  • (Boolean)


46
47
48
# File 'library/general/src/lib/installation/autoinst_issues/issue.rb', line 46

def warn?
  severity == :warn
end