Sha256: d9983f6a9ee22bfd0f0ddd76fc5e22bfde48cd29b42b21233432e585bbb0a2ba

Contents?: true

Size: 922 Bytes

Versions: 81

Compression:

Stored size: 922 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
  
  # Called when tools.path_identifier is called on a dir with an untrusted rvmrc.
  class ErrorLoadingRVMRC < Error; end

end

Version data entries

81 entries across 81 versions & 2 rubygems

Version Path
rvm-1.1.11 lib/rvm/errors.rb
rvm-1.1.10 lib/rvm/errors.rb
rvm-1.1.9 lib/rvm/errors.rb
rvm-1.1.8 lib/rvm/errors.rb
rvm-1.1.7 lib/rvm/errors.rb
rvm-1.1.6 lib/rvm/errors.rb
rvm-1.1.5 lib/rvm/errors.rb
rvm-1.1.4 lib/rvm/errors.rb
rvm-1.1.3 lib/rvm/errors.rb
rvm-1.1.2 lib/rvm/errors.rb
rvm-1.1.1 lib/rvm/errors.rb
rvm-1.1.0 lib/rvm/errors.rb
rvm-1.0.23 lib/rvm/errors.rb
rvm-1.0.22 lib/rvm/errors.rb
rvm-1.0.21 lib/rvm/errors.rb
rvm-1.0.20 lib/rvm/errors.rb
rvm-1.0.19 lib/rvm/errors.rb
rvm-1.0.18 lib/rvm/errors.rb
rvm-1.0.17 lib/rvm/errors.rb
rvm-1.0.15 lib/rvm/errors.rb