Exception: Metanorma::Cli::Errors::FatalCompilationError
- Inherits:
-
StandardError
- Object
- StandardError
- Metanorma::Cli::Errors::FatalCompilationError
- Defined in:
- lib/metanorma/cli/errors.rb
Instance Attribute Summary collapse
-
#fatals ⇒ Object
readonly
Returns the value of attribute fatals.
Instance Method Summary collapse
-
#initialize(fatals) ⇒ FatalCompilationError
constructor
A new instance of FatalCompilationError.
- #message ⇒ Object
Constructor Details
#initialize(fatals) ⇒ FatalCompilationError
Returns a new instance of FatalCompilationError.
12 13 14 15 |
# File 'lib/metanorma/cli/errors.rb', line 12 def initialize(fatals) super() @fatals = fatals end |
Instance Attribute Details
#fatals ⇒ Object (readonly)
Returns the value of attribute fatals.
10 11 12 |
# File 'lib/metanorma/cli/errors.rb', line 10 def fatals @fatals end |
Instance Method Details
#message ⇒ Object
17 18 19 20 21 22 23 24 |
# File 'lib/metanorma/cli/errors.rb', line 17 def <<~MSG Fatal compilation error(s): #{fatals.map { |f| "- #{f}" }.join("\n")} Look at error.log for more details MSG end |