Exception: Inky::BuildError

Inherits:
Error
  • Object
show all
Defined in:
lib/inky.rb

Overview

Raised when the full build pipeline fails.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(message, warnings = []) ⇒ BuildError

Returns a new instance of BuildError.



21
22
23
24
# File 'lib/inky.rb', line 21

def initialize(message, warnings = [])
  super(message)
  @warnings = warnings
end

Instance Attribute Details

#warningsArray<String> (readonly)

Returns Non-fatal notes collected before the failure.

Returns:

  • (Array<String>)

    Non-fatal notes collected before the failure.



19
20
21
# File 'lib/inky.rb', line 19

def warnings
  @warnings
end