Exception: RVM::ErrorWithResult
- Defined in:
- lib/rvm/errors.rb
Overview
Generic error with the shell command output attached. The RVM::Shell::Result instance is available via #result
.
Direct Known Subclasses
Instance Attribute Summary collapse
-
#result ⇒ Object
readonly
Returns the value of attribute result.
Instance Method Summary collapse
-
#initialize(result, message = nil) ⇒ ErrorWithResult
constructor
A new instance of ErrorWithResult.
Constructor Details
#initialize(result, message = nil) ⇒ ErrorWithResult
Returns a new instance of ErrorWithResult.
11 12 13 14 |
# File 'lib/rvm/errors.rb', line 11 def initialize(result, = nil) @result = result super end |
Instance Attribute Details
#result ⇒ Object (readonly)
Returns the value of attribute result.
9 10 11 |
# File 'lib/rvm/errors.rb', line 9 def result @result end |