Exception: Rubycc::Rmake::ExecutionError

Inherits:
RmakeError show all
Defined in:
lib/rubycc/rmake/errors.rb

Overview

Base for a failure that happens while running a plan (as opposed to parsing or planning it). It always names the target whose recipe was executing and the exact expanded recipe line at fault, so a build failure points back at "which command of which target" the way make's own *** [target] Error line does (N3).

Direct Known Subclasses

CommandFailedError, UnsupportedRecipeError

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(message, target:, command:) ⇒ ExecutionError

Returns a new instance of ExecutionError.



42
43
44
45
46
# File 'lib/rubycc/rmake/errors.rb', line 42

def initialize(message, target:, command:)
  @target = target
  @command = command
  super("#{target}: #{message}: #{command.inspect}")
end

Instance Attribute Details

#commandObject (readonly)

Returns the value of attribute command.



40
41
42
# File 'lib/rubycc/rmake/errors.rb', line 40

def command
  @command
end

#targetObject (readonly)

Returns the value of attribute target.



40
41
42
# File 'lib/rubycc/rmake/errors.rb', line 40

def target
  @target
end