2010-08-28 19:23:40 +00:00
|
|
|
# This file contains all of the internal errors in Vagrant's core
|
|
|
|
# commands, actions, etc.
|
|
|
|
|
2010-08-24 18:18:29 +00:00
|
|
|
module Vagrant
|
2010-09-23 17:04:52 +00:00
|
|
|
# This module contains all of the internal errors in Vagrant's core.
|
|
|
|
# These errors are _expected_ errors and as such don't typically represent
|
|
|
|
# bugs in Vagrant itself. These are meant as a way to detect errors and
|
|
|
|
# display them in a user-friendly way.
|
|
|
|
#
|
|
|
|
# # Defining a new Error
|
|
|
|
#
|
|
|
|
# To define a new error, inherit from {VagrantError}, which lets Vagrant
|
|
|
|
# know that this is an expected error, and also gives you some helpers for
|
|
|
|
# providing exit codes and error messages. An example is shown below, then
|
|
|
|
# it is explained:
|
|
|
|
#
|
|
|
|
# class MyError < Vagrant::Errors::VagrantError
|
|
|
|
# error_key "my_error"
|
|
|
|
# end
|
|
|
|
#
|
|
|
|
# This creates an error with an I18n error key of "my_error." {VagrantError}
|
|
|
|
# uses I18n to look up error messages, in the "vagrant.errors" namespace. So
|
|
|
|
# in the above, the error message would be the translation of "vagrant.errors.my_error"
|
|
|
|
#
|
|
|
|
# If you don't want to use I18n, you can override the {#initialize} method and
|
|
|
|
# set your own error message.
|
|
|
|
#
|
|
|
|
# # Raising an Error
|
|
|
|
#
|
|
|
|
# To raise an error, it is nothing special, just raise it like any normal
|
|
|
|
# exception:
|
|
|
|
#
|
|
|
|
# raise MyError.new
|
|
|
|
#
|
|
|
|
# Eventually this exception will bubble out to the `vagrant` binary which
|
|
|
|
# will show a nice error message. And if it is raised in the middle of a
|
|
|
|
# middleware sequence, then {Action::Warden} will catch it and begin the
|
|
|
|
# recovery process prior to exiting.
|
2010-08-27 06:21:28 +00:00
|
|
|
module Errors
|
|
|
|
# Main superclass of any errors in Vagrant. This provides some
|
|
|
|
# convenience methods for setting the status code and error key.
|
|
|
|
# The status code is used by the `vagrant` executable as the
|
|
|
|
# error code, and the error key is used as a default message from
|
|
|
|
# I18n.
|
|
|
|
class VagrantError < StandardError
|
2010-08-28 19:23:40 +00:00
|
|
|
def self.error_key(key=nil, namespace=nil)
|
2010-08-27 06:21:28 +00:00
|
|
|
define_method(:error_key) { key }
|
2010-09-01 15:27:29 +00:00
|
|
|
error_namespace(namespace) if namespace
|
|
|
|
end
|
|
|
|
|
|
|
|
def self.error_namespace(namespace)
|
|
|
|
define_method(:error_namespace) { namespace }
|
2010-08-27 06:21:28 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
def initialize(message=nil, *args)
|
2010-09-01 15:27:29 +00:00
|
|
|
message = { :_key => message } if message && !message.is_a?(Hash)
|
|
|
|
message = { :_key => error_key, :_namespace => error_namespace }.merge(message || {})
|
2010-09-01 23:15:24 +00:00
|
|
|
message = translate_error(message)
|
2010-09-01 15:27:29 +00:00
|
|
|
|
2010-08-27 06:21:28 +00:00
|
|
|
super
|
|
|
|
end
|
|
|
|
|
2010-09-01 15:27:29 +00:00
|
|
|
# The default error namespace which is used for the error key.
|
|
|
|
# This can be overridden here or by calling the "error_namespace"
|
|
|
|
# class method.
|
|
|
|
def error_namespace; "vagrant.errors"; end
|
|
|
|
|
|
|
|
# The key for the error message. This should be set using the
|
|
|
|
# {error_key} method but can be overridden here if needed.
|
2010-09-01 21:50:15 +00:00
|
|
|
def error_key; nil; end
|
2010-09-01 15:27:29 +00:00
|
|
|
|
2013-02-04 02:04:43 +00:00
|
|
|
# This is the exit code that should be used when exiting from
|
|
|
|
# this exception.
|
|
|
|
#
|
|
|
|
# @return [Integer]
|
|
|
|
def status_code; 1; end
|
|
|
|
|
2010-08-27 06:21:28 +00:00
|
|
|
protected
|
|
|
|
|
2010-09-01 15:27:29 +00:00
|
|
|
def translate_error(opts)
|
2010-09-01 23:15:24 +00:00
|
|
|
return nil if !opts[:_key]
|
2010-09-01 15:27:29 +00:00
|
|
|
I18n.t("#{opts[:_namespace]}.#{opts[:_key]}", opts)
|
2010-08-27 06:21:28 +00:00
|
|
|
end
|
2010-08-24 18:18:29 +00:00
|
|
|
end
|
2010-08-27 04:56:38 +00:00
|
|
|
|
2012-12-30 20:52:01 +00:00
|
|
|
class ActiveMachineWithDifferentProvider < VagrantError
|
|
|
|
error_key(:active_machine_with_different_provider)
|
|
|
|
end
|
|
|
|
|
2013-04-04 20:58:33 +00:00
|
|
|
class AnsiblePlaybookAppNotFound < VagrantError
|
|
|
|
error_key(:ansible_playbook_app_not_found)
|
|
|
|
end
|
|
|
|
|
2010-08-27 06:21:28 +00:00
|
|
|
class BaseVMNotFound < VagrantError
|
|
|
|
error_key(:base_vm_not_found)
|
2010-08-27 04:56:38 +00:00
|
|
|
end
|
|
|
|
|
2013-03-22 04:42:06 +00:00
|
|
|
class BatchMultiError < VagrantError
|
|
|
|
error_key(:batch_multi_error)
|
|
|
|
end
|
|
|
|
|
2010-08-28 19:31:55 +00:00
|
|
|
class BoxAlreadyExists < VagrantError
|
|
|
|
error_key(:already_exists, "vagrant.actions.box.unpackage")
|
|
|
|
end
|
|
|
|
|
2013-04-20 05:09:42 +00:00
|
|
|
class BoxConfigChangingBox < VagrantError
|
|
|
|
error_key(:box_config_changing_box)
|
|
|
|
end
|
|
|
|
|
2013-03-15 18:12:50 +00:00
|
|
|
class BoxMetadataFileNotFound < VagrantError
|
|
|
|
error_key(:box_metadata_file_not_found)
|
|
|
|
end
|
|
|
|
|
2010-08-27 06:21:28 +00:00
|
|
|
class BoxNotFound < VagrantError
|
|
|
|
error_key(:box_not_found)
|
2010-08-27 04:56:38 +00:00
|
|
|
end
|
|
|
|
|
2010-08-31 02:39:11 +00:00
|
|
|
class BoxNotSpecified < VagrantError
|
|
|
|
error_key(:not_specified, "vagrant.actions.vm.check_box")
|
|
|
|
end
|
|
|
|
|
2012-07-02 04:41:57 +00:00
|
|
|
class BoxProviderDoesntMatch < VagrantError
|
|
|
|
error_key(:box_provider_doesnt_match)
|
|
|
|
end
|
|
|
|
|
2010-08-31 02:39:11 +00:00
|
|
|
class BoxSpecifiedDoesntExist < VagrantError
|
|
|
|
error_key(:does_not_exist, "vagrant.actions.vm.check_box")
|
|
|
|
end
|
|
|
|
|
2011-12-11 05:49:00 +00:00
|
|
|
class BoxUnpackageFailure < VagrantError
|
|
|
|
error_key(:untar_failure, "vagrant.actions.box.unpackage")
|
|
|
|
end
|
|
|
|
|
2012-06-28 04:42:36 +00:00
|
|
|
class BoxUpgradeRequired < VagrantError
|
|
|
|
error_key(:box_upgrade_required)
|
|
|
|
end
|
|
|
|
|
2010-08-28 19:31:55 +00:00
|
|
|
class BoxVerificationFailed < VagrantError
|
|
|
|
error_key(:failed, "vagrant.actions.box.verify")
|
|
|
|
end
|
|
|
|
|
2013-04-08 20:46:03 +00:00
|
|
|
class CFEngineBootstrapFailed < VagrantError
|
|
|
|
error_key(:cfengine_bootstrap_failed)
|
|
|
|
end
|
|
|
|
|
2013-04-08 22:30:41 +00:00
|
|
|
class CFEngineCantAutodetectIP < VagrantError
|
|
|
|
error_key(:cfengine_cant_autodetect_ip)
|
|
|
|
end
|
|
|
|
|
2013-04-08 20:05:53 +00:00
|
|
|
class CFEngineInstallFailed < VagrantError
|
|
|
|
error_key(:cfengine_install_failed)
|
|
|
|
end
|
|
|
|
|
|
|
|
class CFEngineNotInstalled < VagrantError
|
|
|
|
error_key(:cfengine_not_installed)
|
|
|
|
end
|
|
|
|
|
2012-01-20 23:21:54 +00:00
|
|
|
class CLIInvalidUsage < VagrantError
|
|
|
|
error_key(:cli_invalid_usage)
|
|
|
|
end
|
|
|
|
|
2012-01-11 02:53:20 +00:00
|
|
|
class CLIInvalidOptions < VagrantError
|
|
|
|
error_key(:cli_invalid_options)
|
2010-08-27 06:21:28 +00:00
|
|
|
end
|
2010-08-27 04:56:38 +00:00
|
|
|
|
2013-01-18 21:26:14 +00:00
|
|
|
class ConfigInvalid < VagrantError
|
|
|
|
error_key(:config_invalid)
|
|
|
|
end
|
|
|
|
|
2013-01-21 03:04:50 +00:00
|
|
|
class ConfigUpgradeErrors < VagrantError
|
|
|
|
error_key(:config_upgrade_errors)
|
|
|
|
end
|
|
|
|
|
2013-03-01 21:51:11 +00:00
|
|
|
class CopyPrivateKeyFailed < VagrantError
|
|
|
|
error_key(:copy_private_key_failed)
|
|
|
|
end
|
|
|
|
|
2012-03-08 06:35:40 +00:00
|
|
|
class DestroyRequiresForce < VagrantError
|
|
|
|
error_key(:destroy_requires_force)
|
|
|
|
end
|
|
|
|
|
2010-10-07 01:57:39 +00:00
|
|
|
class DotfileIsDirectory < VagrantError
|
|
|
|
error_key(:dotfile_is_directory)
|
|
|
|
end
|
|
|
|
|
2012-12-27 06:24:45 +00:00
|
|
|
class DotfileUpgradeJSONError < VagrantError
|
|
|
|
error_key(:dotfile_upgrade_json_error)
|
|
|
|
end
|
|
|
|
|
2013-03-17 18:09:46 +00:00
|
|
|
class DownloaderError < VagrantError
|
|
|
|
error_key(:downloader_error)
|
|
|
|
end
|
|
|
|
|
2013-03-17 18:25:22 +00:00
|
|
|
class DownloaderInterrupted < DownloaderError
|
|
|
|
error_key(:downloader_interrupted)
|
|
|
|
end
|
|
|
|
|
2010-09-01 14:22:14 +00:00
|
|
|
class DownloaderFileDoesntExist < VagrantError
|
|
|
|
error_key(:file_missing, "vagrant.downloaders.file")
|
|
|
|
end
|
|
|
|
|
2012-09-10 03:16:16 +00:00
|
|
|
class DownloaderHTTPConnectReset < VagrantError
|
|
|
|
error_key(:connection_reset, "vagrant.downloaders.http")
|
|
|
|
end
|
|
|
|
|
2012-03-31 02:27:30 +00:00
|
|
|
class DownloaderHTTPConnectTimeout < VagrantError
|
|
|
|
error_key(:connection_timeout, "vagrant.downloaders.http")
|
|
|
|
end
|
|
|
|
|
2010-09-01 14:22:14 +00:00
|
|
|
class DownloaderHTTPSocketError < VagrantError
|
|
|
|
error_key(:socket_error, "vagrant.downloaders.http")
|
|
|
|
end
|
|
|
|
|
2011-07-06 05:48:02 +00:00
|
|
|
class DownloaderHTTPStatusError < VagrantError
|
|
|
|
error_key(:status_error, "vagrant.downloaders.http")
|
|
|
|
end
|
|
|
|
|
2012-03-09 00:57:17 +00:00
|
|
|
class EnvironmentNonExistentCWD < VagrantError
|
|
|
|
error_key(:environment_non_existent_cwd)
|
|
|
|
end
|
|
|
|
|
2011-07-09 22:57:24 +00:00
|
|
|
class EnvironmentLockedError < VagrantError
|
|
|
|
error_key(:environment_locked)
|
|
|
|
end
|
|
|
|
|
2012-02-07 03:21:01 +00:00
|
|
|
class GemCommandInBundler < VagrantError
|
|
|
|
error_key(:gem_command_in_bundler)
|
|
|
|
end
|
|
|
|
|
2011-07-10 01:54:35 +00:00
|
|
|
class HomeDirectoryMigrationFailed < VagrantError
|
|
|
|
error_key(:home_dir_migration_failed)
|
|
|
|
end
|
|
|
|
|
2011-12-11 01:10:02 +00:00
|
|
|
class HomeDirectoryNotAccessible < VagrantError
|
|
|
|
error_key(:home_dir_not_accessible)
|
|
|
|
end
|
|
|
|
|
2013-03-22 17:51:07 +00:00
|
|
|
class ForwardPortAdapterNotFound < VagrantError
|
|
|
|
error_key(:forward_port_adapter_not_found)
|
|
|
|
end
|
|
|
|
|
2010-08-31 03:07:50 +00:00
|
|
|
class ForwardPortAutolistEmpty < VagrantError
|
|
|
|
error_key(:auto_empty, "vagrant.actions.vm.forward_ports")
|
|
|
|
end
|
|
|
|
|
|
|
|
class ForwardPortCollision < VagrantError
|
|
|
|
error_key(:collision_error, "vagrant.actions.vm.forward_ports")
|
|
|
|
end
|
|
|
|
|
2011-12-25 17:48:49 +00:00
|
|
|
class ForwardPortCollisionResume < VagrantError
|
|
|
|
error_key(:port_collision_resume)
|
|
|
|
end
|
|
|
|
|
2013-04-04 05:19:20 +00:00
|
|
|
class GuestCapabilityInvalid < VagrantError
|
|
|
|
error_key(:guest_capability_invalid)
|
|
|
|
end
|
|
|
|
|
|
|
|
class GuestCapabilityNotFound < VagrantError
|
|
|
|
error_key(:guest_capability_not_found)
|
|
|
|
end
|
|
|
|
|
2013-04-04 04:47:57 +00:00
|
|
|
class GuestNotDetected < VagrantError
|
|
|
|
error_key(:guest_not_detected)
|
|
|
|
end
|
|
|
|
|
2013-04-04 06:14:24 +00:00
|
|
|
class LinuxMountFailed < VagrantError
|
|
|
|
error_key(:linux_mount_failed)
|
|
|
|
end
|
|
|
|
|
2013-04-04 06:33:20 +00:00
|
|
|
class LinuxNFSMountFailed < VagrantError
|
|
|
|
error_key(:linux_nfs_mount_failed)
|
|
|
|
end
|
|
|
|
|
2013-04-04 06:14:24 +00:00
|
|
|
class LinuxShellExpandFailed < VagrantError
|
|
|
|
error_key(:linux_shell_expand_failed)
|
|
|
|
end
|
|
|
|
|
2012-12-27 04:36:46 +00:00
|
|
|
class LocalDataDirectoryNotAccessible < VagrantError
|
|
|
|
error_key(:local_data_dir_not_accessible)
|
|
|
|
end
|
|
|
|
|
2012-08-12 23:46:00 +00:00
|
|
|
class MachineGuestNotReady < VagrantError
|
|
|
|
error_key(:machine_guest_not_ready)
|
|
|
|
end
|
|
|
|
|
2012-11-08 05:45:09 +00:00
|
|
|
class MachineNotFound < VagrantError
|
|
|
|
error_key(:machine_not_found)
|
|
|
|
end
|
|
|
|
|
2013-01-21 17:31:20 +00:00
|
|
|
class MachineStateInvalid < VagrantError
|
|
|
|
error_key(:machine_state_invalid)
|
|
|
|
end
|
|
|
|
|
2010-08-27 06:21:28 +00:00
|
|
|
class MultiVMEnvironmentRequired < VagrantError
|
|
|
|
error_key(:multi_vm_required)
|
|
|
|
end
|
2010-08-27 04:56:38 +00:00
|
|
|
|
2010-08-27 06:21:28 +00:00
|
|
|
class MultiVMTargetRequired < VagrantError
|
|
|
|
error_key(:multi_vm_target_required)
|
|
|
|
end
|
2010-08-24 18:18:29 +00:00
|
|
|
|
2012-01-03 17:34:32 +00:00
|
|
|
class NetworkAdapterCollision < VagrantError
|
|
|
|
error_key(:adapter_collision, "vagrant.actions.vm.network")
|
|
|
|
end
|
|
|
|
|
2010-08-31 03:07:50 +00:00
|
|
|
class NetworkCollision < VagrantError
|
2011-12-31 19:27:37 +00:00
|
|
|
error_key(:collides, "vagrant.actions.vm.host_only_network")
|
2010-08-31 03:07:50 +00:00
|
|
|
end
|
|
|
|
|
2012-01-03 16:01:26 +00:00
|
|
|
class NetworkNoAdapters < VagrantError
|
|
|
|
error_key(:no_adapters, "vagrant.actions.vm.network")
|
|
|
|
end
|
|
|
|
|
2012-01-09 04:28:47 +00:00
|
|
|
class NetworkDHCPAlreadyAttached < VagrantError
|
|
|
|
error_key(:dhcp_already_attached, "vagrant.actions.vm.network")
|
|
|
|
end
|
|
|
|
|
2010-08-31 03:07:50 +00:00
|
|
|
class NetworkNotFound < VagrantError
|
2011-12-31 19:27:37 +00:00
|
|
|
error_key(:not_found, "vagrant.actions.vm.host_only_network")
|
2010-08-31 03:07:50 +00:00
|
|
|
end
|
|
|
|
|
2013-02-08 23:34:04 +00:00
|
|
|
class NFSNoGuestIP < VagrantError
|
|
|
|
error_key(:nfs_no_guest_ip)
|
2010-08-31 03:07:50 +00:00
|
|
|
end
|
|
|
|
|
2013-02-08 23:34:04 +00:00
|
|
|
class NFSNoHostIP < VagrantError
|
|
|
|
error_key(:nfs_no_host_ip)
|
2010-08-31 03:07:50 +00:00
|
|
|
end
|
|
|
|
|
2013-03-18 05:33:02 +00:00
|
|
|
class NFSNoHostonlyNetwork < VagrantError
|
|
|
|
error_key(:nfs_no_hostonly_network)
|
|
|
|
end
|
|
|
|
|
2010-08-27 06:21:28 +00:00
|
|
|
class NoEnvironmentError < VagrantError
|
|
|
|
error_key(:no_env)
|
|
|
|
end
|
2010-08-27 04:56:38 +00:00
|
|
|
|
2010-08-28 20:54:59 +00:00
|
|
|
class PackageIncludeMissing < VagrantError
|
|
|
|
error_key(:include_file_missing, "vagrant.actions.general.package")
|
|
|
|
end
|
|
|
|
|
2012-02-11 01:57:23 +00:00
|
|
|
class PackageOutputDirectory < VagrantError
|
|
|
|
error_key(:output_is_directory, "vagrant.actions.general.package")
|
|
|
|
end
|
|
|
|
|
2010-08-28 20:54:59 +00:00
|
|
|
class PackageOutputExists < VagrantError
|
|
|
|
error_key(:output_exists, "vagrant.actions.general.package")
|
|
|
|
end
|
|
|
|
|
|
|
|
class PackageRequiresDirectory < VagrantError
|
|
|
|
error_key(:requires_directory, "vagrant.actions.general.package")
|
|
|
|
end
|
|
|
|
|
2010-09-01 14:13:37 +00:00
|
|
|
class PersistDotfileExists < VagrantError
|
|
|
|
error_key(:dotfile_error, "vagrant.actions.vm.persist")
|
|
|
|
end
|
|
|
|
|
2012-11-08 05:45:09 +00:00
|
|
|
class ProviderNotFound < VagrantError
|
|
|
|
error_key(:provider_not_found)
|
|
|
|
end
|
|
|
|
|
2013-02-03 07:31:53 +00:00
|
|
|
class PluginGemError < VagrantError
|
|
|
|
error_key(:plugin_gem_error)
|
|
|
|
end
|
|
|
|
|
2013-02-03 21:59:43 +00:00
|
|
|
class PluginInstallBadEntryPoint < VagrantError
|
|
|
|
error_key(:plugin_install_bad_entry_point)
|
|
|
|
end
|
|
|
|
|
2013-02-04 18:22:15 +00:00
|
|
|
class PluginInstallLicenseNotFound < VagrantError
|
|
|
|
error_key(:plugin_install_license_not_found)
|
|
|
|
end
|
|
|
|
|
2013-02-03 22:29:29 +00:00
|
|
|
class PluginInstallNotFound < VagrantError
|
|
|
|
error_key(:plugin_install_not_found)
|
|
|
|
end
|
|
|
|
|
2012-05-06 21:01:10 +00:00
|
|
|
class PluginLoadError < VagrantError
|
|
|
|
error_key(:plugin_load_error)
|
|
|
|
end
|
|
|
|
|
2013-02-03 22:13:27 +00:00
|
|
|
class PluginLoadFailed < VagrantError
|
|
|
|
error_key(:plugin_load_failed)
|
|
|
|
end
|
|
|
|
|
2013-03-01 19:55:06 +00:00
|
|
|
class PluginLoadFailedWithOutput < VagrantError
|
|
|
|
error_key(:plugin_load_failed_with_output)
|
|
|
|
end
|
|
|
|
|
2013-02-04 18:22:15 +00:00
|
|
|
class PluginNotFound < VagrantError
|
|
|
|
error_key(:plugin_not_found)
|
|
|
|
end
|
|
|
|
|
2012-06-23 04:04:21 +00:00
|
|
|
class SCPPermissionDenied < VagrantError
|
|
|
|
error_key(:scp_permission_denied)
|
|
|
|
end
|
|
|
|
|
2011-12-11 05:29:11 +00:00
|
|
|
class SCPUnavailable < VagrantError
|
|
|
|
error_key(:scp_unavailable)
|
|
|
|
end
|
|
|
|
|
2012-01-08 19:29:52 +00:00
|
|
|
class SharedFolderCreateFailed < VagrantError
|
|
|
|
error_key(:shared_folder_create_failed)
|
|
|
|
end
|
|
|
|
|
2010-08-27 07:01:27 +00:00
|
|
|
class SSHAuthenticationFailed < VagrantError
|
|
|
|
error_key(:ssh_authentication_failed)
|
|
|
|
end
|
|
|
|
|
2013-04-01 03:27:08 +00:00
|
|
|
class SSHConnectEACCES < VagrantError
|
|
|
|
error_key(:ssh_connect_eacces)
|
|
|
|
end
|
|
|
|
|
2010-09-14 21:00:46 +00:00
|
|
|
class SSHConnectionRefused < VagrantError
|
|
|
|
error_key(:ssh_connection_refused)
|
|
|
|
end
|
|
|
|
|
2013-02-07 02:08:55 +00:00
|
|
|
class SSHConnectionReset < VagrantError
|
|
|
|
error_key(:ssh_connection_reset)
|
|
|
|
end
|
|
|
|
|
2012-03-29 05:30:01 +00:00
|
|
|
class SSHConnectionTimeout < VagrantError
|
|
|
|
error_key(:ssh_connection_timeout)
|
|
|
|
end
|
|
|
|
|
2012-07-04 18:26:09 +00:00
|
|
|
class SSHDisconnected < VagrantError
|
|
|
|
error_key(:ssh_disconnected)
|
|
|
|
end
|
|
|
|
|
2013-01-12 20:47:49 +00:00
|
|
|
class SSHHostDown < VagrantError
|
|
|
|
error_key(:ssh_host_down)
|
|
|
|
end
|
|
|
|
|
2013-04-06 23:50:59 +00:00
|
|
|
class SSHIsPuttyLink < VagrantError
|
|
|
|
error_key(:ssh_is_putty_link)
|
|
|
|
end
|
|
|
|
|
2013-03-28 23:54:39 +00:00
|
|
|
class SSHKeyBadOwner < VagrantError
|
|
|
|
error_key(:ssh_key_bad_owner)
|
|
|
|
end
|
|
|
|
|
2010-08-27 07:05:03 +00:00
|
|
|
class SSHKeyBadPermissions < VagrantError
|
|
|
|
error_key(:ssh_key_bad_permissions)
|
|
|
|
end
|
|
|
|
|
2012-03-13 21:27:16 +00:00
|
|
|
class SSHKeyTypeNotSupported < VagrantError
|
|
|
|
error_key(:ssh_key_type_not_supported)
|
|
|
|
end
|
|
|
|
|
2012-08-06 17:29:25 +00:00
|
|
|
class SSHNotReady < VagrantError
|
|
|
|
error_key(:ssh_not_ready)
|
|
|
|
end
|
|
|
|
|
2011-01-14 08:36:49 +00:00
|
|
|
class SSHPortNotDetected < VagrantError
|
|
|
|
error_key(:ssh_port_not_detected)
|
|
|
|
end
|
|
|
|
|
2010-09-30 06:47:17 +00:00
|
|
|
class SSHUnavailable < VagrantError
|
|
|
|
error_key(:ssh_unavailable)
|
|
|
|
end
|
|
|
|
|
2010-08-27 06:51:30 +00:00
|
|
|
class SSHUnavailableWindows < VagrantError
|
|
|
|
error_key(:ssh_unavailable_windows)
|
|
|
|
end
|
|
|
|
|
2012-03-08 06:32:44 +00:00
|
|
|
class UIExpectsTTY < VagrantError
|
|
|
|
error_key(:ui_expects_tty)
|
|
|
|
end
|
|
|
|
|
2012-07-16 21:12:58 +00:00
|
|
|
class UnimplementedProviderAction < VagrantError
|
|
|
|
error_key(:unimplemented_provider_action)
|
|
|
|
end
|
|
|
|
|
2010-09-01 21:50:15 +00:00
|
|
|
class VagrantInterrupt < VagrantError
|
2010-09-02 01:07:47 +00:00
|
|
|
error_key(:interrupted)
|
2010-09-01 21:50:15 +00:00
|
|
|
end
|
|
|
|
|
2011-12-18 05:06:00 +00:00
|
|
|
class VagrantfileExistsError < VagrantError
|
|
|
|
error_key(:vagrantfile_exists)
|
|
|
|
end
|
|
|
|
|
2013-01-31 04:01:41 +00:00
|
|
|
class VagrantfileLoadError < VagrantError
|
|
|
|
error_key(:vagrantfile_load_error)
|
|
|
|
end
|
|
|
|
|
2010-09-03 21:22:34 +00:00
|
|
|
class VagrantfileSyntaxError < VagrantError
|
|
|
|
error_key(:vagrantfile_syntax_error)
|
|
|
|
end
|
|
|
|
|
2011-12-21 23:41:14 +00:00
|
|
|
class VBoxManageError < VagrantError
|
|
|
|
error_key(:vboxmanage_error)
|
|
|
|
end
|
|
|
|
|
2013-03-29 20:14:00 +00:00
|
|
|
class VBoxManageNotFoundError < VagrantError
|
|
|
|
error_key(:vboxmanage_not_found_error)
|
|
|
|
end
|
|
|
|
|
2010-08-27 06:21:28 +00:00
|
|
|
class VirtualBoxInvalidVersion < VagrantError
|
|
|
|
error_key(:virtualbox_invalid_version)
|
|
|
|
end
|
2010-08-27 04:56:38 +00:00
|
|
|
|
2013-01-11 23:56:56 +00:00
|
|
|
class VirtualBoxNoRoomForHighLevelNetwork < VagrantError
|
|
|
|
error_key(:virtualbox_no_room_for_high_level_network)
|
|
|
|
end
|
|
|
|
|
2010-08-27 06:21:28 +00:00
|
|
|
class VirtualBoxNotDetected < VagrantError
|
|
|
|
error_key(:virtualbox_not_detected)
|
|
|
|
end
|
2010-08-27 04:56:38 +00:00
|
|
|
|
2012-01-25 03:30:55 +00:00
|
|
|
class VirtualBoxKernelModuleNotLoaded < VagrantError
|
|
|
|
error_key(:virtualbox_kernel_module_not_loaded)
|
|
|
|
end
|
|
|
|
|
2012-03-29 14:22:31 +00:00
|
|
|
class VirtualBoxInstallIncomplete < VagrantError
|
|
|
|
error_key(:virtualbox_install_incomplete)
|
|
|
|
end
|
|
|
|
|
2010-10-08 17:44:19 +00:00
|
|
|
class VMBaseMacNotSpecified < VagrantError
|
|
|
|
error_key(:no_base_mac, "vagrant.actions.vm.match_mac")
|
|
|
|
end
|
|
|
|
|
2011-12-22 00:37:59 +00:00
|
|
|
class VMCustomizationFailed < VagrantError
|
|
|
|
error_key(:failure, "vagrant.actions.vm.customize")
|
|
|
|
end
|
|
|
|
|
2010-08-31 02:39:11 +00:00
|
|
|
class VMFailedToBoot < VagrantError
|
|
|
|
error_key(:failed_to_boot, "vagrant.actions.vm.boot")
|
|
|
|
end
|
|
|
|
|
2012-03-25 17:00:27 +00:00
|
|
|
class VMFailedToRun < VagrantError
|
|
|
|
error_key(:failed_to_run, "vagrant.actions.vm.boot")
|
|
|
|
end
|
|
|
|
|
2011-12-16 04:55:16 +00:00
|
|
|
class VMGuestError < VagrantError
|
|
|
|
error_namespace("vagrant.errors.guest")
|
|
|
|
end
|
|
|
|
|
2010-08-31 03:07:50 +00:00
|
|
|
class VMImportFailure < VagrantError
|
|
|
|
error_key(:failure, "vagrant.actions.vm.import")
|
|
|
|
end
|
|
|
|
|
2011-08-29 03:32:22 +00:00
|
|
|
class VMInaccessible < VagrantError
|
|
|
|
error_key(:vm_inaccessible)
|
|
|
|
end
|
|
|
|
|
2013-01-31 07:22:45 +00:00
|
|
|
class VMNameExists < VagrantError
|
|
|
|
error_key(:vm_name_exists)
|
|
|
|
end
|
|
|
|
|
2011-12-27 02:12:02 +00:00
|
|
|
class VMNoMatchError < VagrantError
|
|
|
|
error_key(:vm_no_match)
|
|
|
|
end
|
|
|
|
|
2010-08-27 06:21:28 +00:00
|
|
|
class VMNotCreatedError < VagrantError
|
|
|
|
error_key(:vm_creation_required)
|
|
|
|
end
|
|
|
|
|
|
|
|
class VMNotFoundError < VagrantError
|
|
|
|
error_key(:vm_not_found)
|
|
|
|
end
|
2010-08-31 02:39:11 +00:00
|
|
|
|
2010-09-30 06:37:24 +00:00
|
|
|
class VMNotRunningError < VagrantError
|
|
|
|
error_key(:vm_not_running)
|
|
|
|
end
|
|
|
|
|
2010-08-31 02:39:11 +00:00
|
|
|
class VMPowerOffToPackage < VagrantError
|
|
|
|
error_key(:power_off, "vagrant.actions.vm.export")
|
|
|
|
end
|
2010-08-27 04:56:38 +00:00
|
|
|
end
|
2010-08-24 18:18:29 +00:00
|
|
|
end
|