Sha256: 9de242d2de9a8635c6544e112b544503e00216d7e14a3775ac1af39e281d9add

Contents?: true

Size: 798 Bytes

Versions: 7

Compression:

Stored size: 798 Bytes

Contents

module RVM

  # Generic error in RVM
  class Error < StandardError; end

  # Generic error with the shell command output attached.
  # The RVM::Shell::Result instance is available via +#result+.
  class ErrorWithResult < Error
    attr_reader :result

    def initialize(result, message = nil)
      @result = result
      super message
    end

  end

  # Something occured processing the command and rvm couldn't parse the results.
  class IncompleteCommandError < Error; end

  # The given action can't replace the env for the current process.
  # Typically raised by RVM::Environment#gemset_use when the gemset
  # is for another, incompatible ruby interpreter.
  #
  # Provides access to the output of the shell command via +#result+.
  class IncompatibleRubyError < ErrorWithResult; end

end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
rvm-1.0.0 lib/rvm/errors.rb
rvm-0.1.47 lib/rvm/errors.rb
rvm-0.1.46 lib/rvm/errors.rb
rvm-0.1.45 lib/rvm/errors.rb
rvm-0.1.44 lib/rvm/errors.rb
rvm-0.1.43 lib/rvm/errors.rb
rvm-0.1.42 lib/rvm/errors.rb