Exception: Bundler::GemRequireError

Inherits:
BundlerError
  • Object
show all
Defined in:
lib/bundler/errors.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from BundlerError

all_errors, status_code

Constructor Details

#initialize(orig_exception, msg) ⇒ GemRequireError

Returns a new instance of GemRequireError.



94
95
96
97
98
99
100
101
# File 'lib/bundler/errors.rb', line 94

def initialize(orig_exception, msg)
  full_message = msg + "\nGem Load Error is: #{orig_exception.message}\n"\
                  "Backtrace for gem load error is:\n"\
                  "#{orig_exception.backtrace.join("\n")}\n"\
                  "Bundler Error Backtrace:\n"
  super(full_message)
  @orig_exception = orig_exception
end

Instance Attribute Details

#orig_exceptionObject (readonly)

Returns the value of attribute orig_exception.



92
93
94
# File 'lib/bundler/errors.rb', line 92

def orig_exception
  @orig_exception
end