Sha256: 67c44bc0d19c625fc7e43ac00fcf328557aa03361c63c5ba3d9304572beb8c63

Contents?: true

Size: 927 Bytes

Versions: 13

Compression:

Stored size: 927 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 occurred while 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

  # Called when tools.path_identifier is called on a dir with an untrusted rvmrc.
  class ErrorLoadingRVMRC < Error; end

end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
rvm-1.11.3.9 lib/rvm/errors.rb
rvm-1.11.3.8 lib/rvm/errors.rb
rvm-1.11.3.7 lib/rvm/errors.rb
rvm-1.11.3.6 lib/rvm/errors.rb
rvm-1.11.3.5 lib/rvm/errors.rb
rvm-1.11.3.4 lib/rvm/errors.rb
rvm-1.11.3.3 lib/rvm/errors.rb
rvm-1.11.3.2 lib/rvm/errors.rb
rvm-1.11.3.1 lib/rvm/errors.rb
rvm-1.11.3 lib/rvm/errors.rb
rvm-1.9.2 lib/rvm/errors.rb
rvm-1.9.1 lib/rvm/errors.rb
rvm-1.9.0 lib/rvm/errors.rb