Exception: Rubycc::Rmake::ExecutionError
- Inherits:
-
RmakeError
- Object
- StandardError
- Error
- RmakeError
- Rubycc::Rmake::ExecutionError
- 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
Instance Attribute Summary collapse
-
#command ⇒ Object
readonly
Returns the value of attribute command.
-
#target ⇒ Object
readonly
Returns the value of attribute target.
Instance Method Summary collapse
-
#initialize(message, target:, command:) ⇒ ExecutionError
constructor
A new instance of ExecutionError.
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(, target:, command:) @target = target @command = command super("#{target}: #{}: #{command.inspect}") end |
Instance Attribute Details
#command ⇒ Object (readonly)
Returns the value of attribute command.
40 41 42 |
# File 'lib/rubycc/rmake/errors.rb', line 40 def command @command end |
#target ⇒ Object (readonly)
Returns the value of attribute target.
40 41 42 |
# File 'lib/rubycc/rmake/errors.rb', line 40 def target @target end |