Exception: AwesomeSpawn::CommandResultError
- Inherits:
-
StandardError
- Object
- StandardError
- AwesomeSpawn::CommandResultError
- Defined in:
- lib/awesome_spawn/command_result_error.rb
Instance Attribute Summary collapse
-
#result ⇒ CommandResult
readonly
The command that caused the error.
Instance Method Summary collapse
-
#initialize(message, result) ⇒ CommandResultError
constructor
A new instance of CommandResultError.
Constructor Details
#initialize(message, result) ⇒ CommandResultError
Returns a new instance of CommandResultError.
6 7 8 9 |
# File 'lib/awesome_spawn/command_result_error.rb', line 6 def initialize(, result) super() @result = result end |
Instance Attribute Details
#result ⇒ CommandResult (readonly)
Returns The command that caused the error.
4 5 6 |
# File 'lib/awesome_spawn/command_result_error.rb', line 4 def result @result end |