Exception: RVM::ErrorWithResult

Inherits:
Error
  • Object
show all
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

IncompatibleRubyError

Instance Attribute Summary collapse

Instance Method Summary collapse

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, message = nil)
  @result = result
  super message
end

Instance Attribute Details

#resultObject (readonly)

Returns the value of attribute result.



9
10
11
# File 'lib/rvm/errors.rb', line 9

def result
  @result
end