Exception: Scallop::Errors::CommandFailed
- Inherits:
-
StandardError
- Object
- StandardError
- Scallop::Errors::CommandFailed
- Defined in:
- lib/scallop/errors.rb
Overview
Error representing command failure.
Instance Attribute Summary collapse
-
#result ⇒ Object
readonly
Returns the value of attribute result.
Instance Method Summary collapse
-
#initialize(message, result) ⇒ CommandFailed
constructor
A new instance of CommandFailed.
Constructor Details
#initialize(message, result) ⇒ CommandFailed
Returns a new instance of CommandFailed.
9 10 11 12 |
# File 'lib/scallop/errors.rb', line 9 def initialize(, result) @result = result super() end |
Instance Attribute Details
#result ⇒ Object (readonly)
Returns the value of attribute result.
7 8 9 |
# File 'lib/scallop/errors.rb', line 7 def result @result end |