Class: VagrantBundler::Errors::GemNotFound

Inherits:
Vagrant::Errors::VagrantError
  • Object
show all
Defined in:
lib/vagrant_bundler/errors.rb

Instance Method Summary collapse

Constructor Details

#initialize(message) ⇒ GemNotFound

Returns a new instance of GemNotFound.



8
9
10
11
12
13
14
15
16
17
# File 'lib/vagrant_bundler/errors.rb', line 8

def initialize(message)
  # We inherit from Vagrant::Errors::VagrantError so that Vagrant
  # handles this error like other VagrantErrors but we want to skip
  # VagrantError#initialize to avoid i18n translations, because we are
  # just passing on the message 'bundle show' returns
  #
  # This call effectively calls initialize on VagrantError's superclass
  # StandardError
  StandardError.instance_method(:initialize).bind(self).call(message)
end