Sha256: 1e3f333c7bde33c61a4d6593a99e20a47eb8d88e3de91fc61b9daf32ce22e741

Contents?: true

Size: 929 Bytes

Versions: 6

Compression:

Stored size: 929 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

6 entries across 6 versions & 1 rubygems

Version Path
rvm-1.8.6 lib/rvm/errors.rb
rvm-1.8.5 lib/rvm/errors.rb
rvm-1.8.4 lib/rvm/errors.rb
rvm-1.8.3 lib/rvm/errors.rb
rvm-1.8.2 lib/rvm/errors.rb
rvm-1.8.1 lib/rvm/errors.rb