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
|
2014-01-08 00:14:16 +00:00
|
|
|
# This is extra data passed into the message for translation.
|
|
|
|
attr_accessor :extra_data
|
|
|
|
|
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
|
|
|
|
|
2013-10-02 04:45:05 +00:00
|
|
|
def self.error_message(message)
|
|
|
|
define_method(:error_message) { message }
|
|
|
|
end
|
|
|
|
|
2010-09-01 15:27:29 +00:00
|
|
|
def self.error_namespace(namespace)
|
|
|
|
define_method(:error_namespace) { namespace }
|
2010-08-27 06:21:28 +00:00
|
|
|
end
|
|
|
|
|
2014-01-09 03:53:04 +00:00
|
|
|
def initialize(*args)
|
|
|
|
key = args.shift if args.first.is_a?(Symbol)
|
|
|
|
message = args.shift if args.first.is_a?(Hash)
|
2014-01-08 00:14:16 +00:00
|
|
|
message ||= {}
|
2014-01-09 03:53:04 +00:00
|
|
|
@extra_data = message.dup
|
|
|
|
message[:_key] ||= error_key
|
|
|
|
message[:_namespace] ||= error_namespace
|
|
|
|
message[:_key] = key if key
|
2013-10-02 04:45:05 +00:00
|
|
|
|
2013-10-05 16:21:38 +00:00
|
|
|
if message[:_key]
|
2013-10-02 04:45:05 +00:00
|
|
|
message = translate_error(message)
|
|
|
|
else
|
|
|
|
message = error_message
|
|
|
|
end
|
2010-09-01 15:27:29 +00:00
|
|
|
|
2014-01-09 03:53:04 +00:00
|
|
|
super(message)
|
2010-08-27 06:21:28 +00:00
|
|
|
end
|
|
|
|
|
2013-10-02 04:45:05 +00:00
|
|
|
# The error message for this error. This is used if no error_key
|
|
|
|
# is specified for a translatable error message.
|
|
|
|
def error_message; "No error message"; 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-07-20 04:07:09 +00:00
|
|
|
class AnsibleFailed < VagrantError
|
|
|
|
error_key(:ansible_failed)
|
|
|
|
end
|
|
|
|
|
2013-04-04 20:58:33 +00:00
|
|
|
class AnsiblePlaybookAppNotFound < VagrantError
|
|
|
|
error_key(:ansible_playbook_app_not_found)
|
|
|
|
end
|
|
|
|
|
2013-03-22 04:42:06 +00:00
|
|
|
class BatchMultiError < VagrantError
|
|
|
|
error_key(:batch_multi_error)
|
|
|
|
end
|
|
|
|
|
2014-04-02 16:32:34 +00:00
|
|
|
class BoxAddDirectVersion < VagrantError
|
|
|
|
error_key(:box_add_direct_version)
|
|
|
|
end
|
|
|
|
|
2014-01-24 20:50:07 +00:00
|
|
|
class BoxAddMetadataMultiURL < VagrantError
|
|
|
|
error_key(:box_add_metadata_multi_url)
|
|
|
|
end
|
|
|
|
|
2014-01-24 19:24:06 +00:00
|
|
|
class BoxAddNameMismatch < VagrantError
|
|
|
|
error_key(:box_add_name_mismatch)
|
|
|
|
end
|
|
|
|
|
2014-01-24 00:46:46 +00:00
|
|
|
class BoxAddNameRequired < VagrantError
|
|
|
|
error_key(:box_add_name_required)
|
|
|
|
end
|
|
|
|
|
2014-01-23 19:45:31 +00:00
|
|
|
class BoxAddNoMatchingProvider < VagrantError
|
|
|
|
error_key(:box_add_no_matching_provider)
|
|
|
|
end
|
|
|
|
|
|
|
|
class BoxAddNoMatchingVersion < VagrantError
|
|
|
|
error_key(:box_add_no_matching_version)
|
|
|
|
end
|
|
|
|
|
2014-01-24 06:48:15 +00:00
|
|
|
class BoxAddShortNotFound < VagrantError
|
|
|
|
error_key(:box_add_short_not_found)
|
|
|
|
end
|
|
|
|
|
2010-08-28 19:31:55 +00:00
|
|
|
class BoxAlreadyExists < VagrantError
|
2014-01-23 23:31:54 +00:00
|
|
|
error_key(:box_add_exists)
|
2010-08-28 19:31:55 +00:00
|
|
|
end
|
|
|
|
|
2013-12-02 06:36:41 +00:00
|
|
|
class BoxChecksumInvalidType < VagrantError
|
|
|
|
error_key(:box_checksum_invalid_type)
|
|
|
|
end
|
|
|
|
|
|
|
|
class BoxChecksumMismatch < VagrantError
|
|
|
|
error_key(:box_checksum_mismatch)
|
|
|
|
end
|
|
|
|
|
2013-04-20 05:09:42 +00:00
|
|
|
class BoxConfigChangingBox < VagrantError
|
|
|
|
error_key(:box_config_changing_box)
|
|
|
|
end
|
|
|
|
|
2013-11-23 19:54:42 +00:00
|
|
|
class BoxMetadataCorrupted < VagrantError
|
|
|
|
error_key(:box_metadata_corrupted)
|
|
|
|
end
|
|
|
|
|
2014-04-05 16:20:03 +00:00
|
|
|
class BoxMetadataDownloadError < VagrantError
|
|
|
|
error_key(:box_metadata_download_error)
|
|
|
|
end
|
|
|
|
|
2013-03-15 18:12:50 +00:00
|
|
|
class BoxMetadataFileNotFound < VagrantError
|
|
|
|
error_key(:box_metadata_file_not_found)
|
|
|
|
end
|
|
|
|
|
2014-01-23 04:17:30 +00:00
|
|
|
class BoxMetadataMalformed < VagrantError
|
|
|
|
error_key(:box_metadata_malformed)
|
|
|
|
end
|
|
|
|
|
2014-04-02 05:48:52 +00:00
|
|
|
class BoxMetadataMalformedVersion < VagrantError
|
|
|
|
error_key(:box_metadata_malformed_version)
|
|
|
|
end
|
|
|
|
|
2014-01-25 18:03:33 +00:00
|
|
|
class BoxNotFound < VagrantError
|
|
|
|
error_key(:box_not_found)
|
|
|
|
end
|
|
|
|
|
|
|
|
class BoxNotFoundWithProvider < VagrantError
|
|
|
|
error_key(:box_not_found_with_provider)
|
|
|
|
end
|
|
|
|
|
2014-04-13 01:00:33 +00:00
|
|
|
class BoxNotFoundWithProviderAndVersion < VagrantError
|
|
|
|
error_key(:box_not_found_with_provider_and_version)
|
|
|
|
end
|
|
|
|
|
2012-07-02 04:41:57 +00:00
|
|
|
class BoxProviderDoesntMatch < VagrantError
|
|
|
|
error_key(:box_provider_doesnt_match)
|
|
|
|
end
|
|
|
|
|
2014-01-24 05:44:11 +00:00
|
|
|
class BoxRemoveNotFound < VagrantError
|
|
|
|
error_key(:box_remove_not_found)
|
|
|
|
end
|
|
|
|
|
|
|
|
class BoxRemoveProviderNotFound < VagrantError
|
|
|
|
error_key(:box_remove_provider_not_found)
|
|
|
|
end
|
|
|
|
|
2014-03-31 18:29:34 +00:00
|
|
|
class BoxRemoveVersionNotFound < VagrantError
|
|
|
|
error_key(:box_remove_version_not_found)
|
|
|
|
end
|
|
|
|
|
2014-01-24 05:44:11 +00:00
|
|
|
class BoxRemoveMultiProvider < VagrantError
|
|
|
|
error_key(:box_remove_multi_provider)
|
|
|
|
end
|
|
|
|
|
|
|
|
class BoxRemoveMultiVersion < VagrantError
|
|
|
|
error_key(:box_remove_multi_version)
|
|
|
|
end
|
|
|
|
|
2014-02-03 08:09:11 +00:00
|
|
|
class BoxServerNotSet < VagrantError
|
|
|
|
error_key(:box_server_not_set)
|
|
|
|
end
|
|
|
|
|
2011-12-11 05:49:00 +00:00
|
|
|
class BoxUnpackageFailure < VagrantError
|
|
|
|
error_key(:untar_failure, "vagrant.actions.box.unpackage")
|
|
|
|
end
|
|
|
|
|
2014-01-25 18:03:33 +00:00
|
|
|
class BoxUpdateMultiProvider < VagrantError
|
|
|
|
error_key(:box_update_multi_provider)
|
|
|
|
end
|
|
|
|
|
2014-01-25 01:52:52 +00:00
|
|
|
class BoxUpdateNoMetadata < VagrantError
|
|
|
|
error_key(:box_update_no_metadata)
|
|
|
|
end
|
|
|
|
|
2010-08-28 19:31:55 +00:00
|
|
|
class BoxVerificationFailed < VagrantError
|
|
|
|
error_key(:failed, "vagrant.actions.box.verify")
|
|
|
|
end
|
|
|
|
|
2014-01-17 17:39:20 +00:00
|
|
|
class BundlerDisabled < VagrantError
|
|
|
|
error_key(:bundler_disabled)
|
|
|
|
end
|
|
|
|
|
2014-01-06 07:13:49 +00:00
|
|
|
class BundlerError < VagrantError
|
|
|
|
error_key(:bundler_error)
|
|
|
|
end
|
|
|
|
|
2014-01-08 00:12:12 +00:00
|
|
|
class CapabilityHostExplicitNotDetected < VagrantError
|
|
|
|
error_key(:capability_host_explicit_not_detected)
|
|
|
|
end
|
|
|
|
|
|
|
|
class CapabilityHostNotDetected < VagrantError
|
|
|
|
error_key(:capability_host_not_detected)
|
|
|
|
end
|
|
|
|
|
|
|
|
class CapabilityInvalid < VagrantError
|
|
|
|
error_key(:capability_invalid)
|
|
|
|
end
|
|
|
|
|
|
|
|
class CapabilityNotFound < VagrantError
|
|
|
|
error_key(:capability_not_found)
|
|
|
|
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-06-02 01:48:47 +00:00
|
|
|
class CommandUnavailable < VagrantError
|
|
|
|
error_key(:command_unavailable)
|
|
|
|
end
|
|
|
|
|
2013-08-29 18:18:21 +00:00
|
|
|
class CommandUnavailableWindows < CommandUnavailable
|
2013-06-02 01:48:47 +00:00
|
|
|
error_key(:command_unavailable_windows)
|
|
|
|
end
|
|
|
|
|
2014-03-11 06:12:14 +00:00
|
|
|
class CommunicatorNotFound < VagrantError
|
|
|
|
error_key(:communicator_not_found)
|
|
|
|
end
|
|
|
|
|
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
|
|
|
|
|
2014-03-02 21:08:20 +00:00
|
|
|
class CorruptMachineIndex < VagrantError
|
|
|
|
error_key(:corrupt_machine_index)
|
|
|
|
end
|
|
|
|
|
2015-05-24 10:39:28 +00:00
|
|
|
class DarwinMountFailed < VagrantError
|
|
|
|
error_key(:darwin_mount_failed)
|
|
|
|
end
|
|
|
|
|
2013-08-06 00:39:44 +00:00
|
|
|
class DarwinNFSMountFailed < VagrantError
|
|
|
|
error_key(:darwin_nfs_mount_failed)
|
|
|
|
end
|
|
|
|
|
2012-03-08 06:35:40 +00:00
|
|
|
class DestroyRequiresForce < VagrantError
|
|
|
|
error_key(:destroy_requires_force)
|
|
|
|
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
|
|
|
|
|
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
|
|
|
|
|
2014-01-22 19:25:36 +00:00
|
|
|
class HomeDirectoryLaterVersion < VagrantError
|
|
|
|
error_key(:home_dir_later_version)
|
|
|
|
end
|
|
|
|
|
2011-12-11 01:10:02 +00:00
|
|
|
class HomeDirectoryNotAccessible < VagrantError
|
|
|
|
error_key(:home_dir_not_accessible)
|
|
|
|
end
|
|
|
|
|
2014-01-22 17:36:22 +00:00
|
|
|
class HomeDirectoryUnknownVersion < VagrantError
|
|
|
|
error_key(:home_dir_unknown_version)
|
|
|
|
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
|
|
|
|
|
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-12-08 19:14:18 +00:00
|
|
|
class GuestExplicitNotDetected < VagrantError
|
|
|
|
error_key(:guest_explicit_not_detected)
|
|
|
|
end
|
|
|
|
|
2013-04-04 04:47:57 +00:00
|
|
|
class GuestNotDetected < VagrantError
|
|
|
|
error_key(:guest_not_detected)
|
|
|
|
end
|
|
|
|
|
2014-01-08 03:11:08 +00:00
|
|
|
class HostExplicitNotDetected < VagrantError
|
|
|
|
error_key(:host_explicit_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
|
|
|
|
|
2014-05-21 02:58:12 +00:00
|
|
|
class LinuxRDesktopNotFound < VagrantError
|
|
|
|
error_key(:linux_rdesktop_not_found)
|
|
|
|
end
|
|
|
|
|
2012-12-27 04:36:46 +00:00
|
|
|
class LocalDataDirectoryNotAccessible < VagrantError
|
|
|
|
error_key(:local_data_dir_not_accessible)
|
|
|
|
end
|
|
|
|
|
2014-04-19 03:17:45 +00:00
|
|
|
class MachineActionLockedError < VagrantError
|
|
|
|
error_key(:machine_action_locked)
|
|
|
|
end
|
|
|
|
|
2012-08-12 23:46:00 +00:00
|
|
|
class MachineGuestNotReady < VagrantError
|
|
|
|
error_key(:machine_guest_not_ready)
|
|
|
|
end
|
|
|
|
|
2014-03-02 21:50:45 +00:00
|
|
|
class MachineLocked < VagrantError
|
|
|
|
error_key(:machine_locked)
|
|
|
|
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 MultiVMTargetRequired < VagrantError
|
|
|
|
error_key(:multi_vm_target_required)
|
|
|
|
end
|
2010-08-24 18:18:29 +00:00
|
|
|
|
2014-08-29 18:40:50 +00:00
|
|
|
class NetSSHException < VagrantError
|
|
|
|
error_key(:net_ssh_exception)
|
|
|
|
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-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-12-14 06:14:13 +00:00
|
|
|
class NFSBadExports < VagrantError
|
|
|
|
error_key(:nfs_bad_exports)
|
|
|
|
end
|
|
|
|
|
2013-09-01 17:25:00 +00:00
|
|
|
class NFSCantReadExports < VagrantError
|
|
|
|
error_key(:nfs_cant_read_exports)
|
|
|
|
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
|
|
|
|
|
2013-12-14 06:03:14 +00:00
|
|
|
class NFSNoValidIds < VagrantError
|
|
|
|
error_key(:nfs_no_valid_ids)
|
|
|
|
end
|
|
|
|
|
2014-05-03 21:09:08 +00:00
|
|
|
class NFSNotSupported < VagrantError
|
|
|
|
error_key(:nfs_not_supported)
|
|
|
|
end
|
|
|
|
|
2014-01-10 00:58:20 +00:00
|
|
|
class NFSClientNotInstalledInGuest < VagrantError
|
|
|
|
error_key(:nfs_client_not_installed_in_guest)
|
|
|
|
end
|
|
|
|
|
2014-10-23 23:31:50 +00:00
|
|
|
class NoDefaultProvider < VagrantError
|
|
|
|
error_key(:no_default_provider)
|
|
|
|
end
|
|
|
|
|
2013-11-23 00:12:51 +00:00
|
|
|
class NoDefaultSyncedFolderImpl < VagrantError
|
|
|
|
error_key(:no_default_synced_folder_impl)
|
|
|
|
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
|
|
|
|
|
2014-04-09 17:52:33 +00:00
|
|
|
class PackageIncludeSymlink < VagrantError
|
|
|
|
error_key(:package_include_symlink)
|
|
|
|
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
|
|
|
|
|
2012-11-08 05:45:09 +00:00
|
|
|
class ProviderNotFound < VagrantError
|
|
|
|
error_key(:provider_not_found)
|
|
|
|
end
|
|
|
|
|
2014-04-10 17:12:03 +00:00
|
|
|
class ProviderNotUsable < VagrantError
|
|
|
|
error_key(:provider_not_usable)
|
|
|
|
end
|
|
|
|
|
2013-09-02 22:06:03 +00:00
|
|
|
class ProvisionerFlagInvalid < VagrantError
|
|
|
|
error_key(:provisioner_flag_invalid)
|
|
|
|
end
|
|
|
|
|
2014-04-12 21:41:10 +00:00
|
|
|
class ProvisionerWinRMUnsupported < VagrantError
|
|
|
|
error_key(:provisioner_winrm_unsupported)
|
|
|
|
end
|
|
|
|
|
2014-01-06 00:57:51 +00:00
|
|
|
class PluginGemNotFound < VagrantError
|
|
|
|
error_key(:plugin_gem_not_found)
|
|
|
|
end
|
|
|
|
|
2013-02-04 18:22:15 +00:00
|
|
|
class PluginInstallLicenseNotFound < VagrantError
|
|
|
|
error_key(:plugin_install_license_not_found)
|
|
|
|
end
|
|
|
|
|
2014-08-29 19:16:40 +00:00
|
|
|
class PluginInstallSpace < VagrantError
|
|
|
|
error_key(:plugin_install_space)
|
|
|
|
end
|
|
|
|
|
2014-01-06 00:28:05 +00:00
|
|
|
class PluginInstallVersionConflict < VagrantError
|
|
|
|
error_key(:plugin_install_version_conflict)
|
|
|
|
end
|
|
|
|
|
2012-05-06 21:01:10 +00:00
|
|
|
class PluginLoadError < VagrantError
|
|
|
|
error_key(:plugin_load_error)
|
|
|
|
end
|
|
|
|
|
2013-09-02 16:31:26 +00:00
|
|
|
class PluginNotInstalled < VagrantError
|
|
|
|
error_key(:plugin_not_installed)
|
|
|
|
end
|
|
|
|
|
2013-12-20 09:54:10 +00:00
|
|
|
class PluginStateFileParseError < VagrantError
|
|
|
|
error_key(:plugin_state_file_not_parsable)
|
|
|
|
end
|
|
|
|
|
2014-03-03 23:05:32 +00:00
|
|
|
class PluginUninstallSystem < VagrantError
|
|
|
|
error_key(:plugin_uninstall_system)
|
|
|
|
end
|
|
|
|
|
2014-10-23 17:51:18 +00:00
|
|
|
class PushesNotDefined < VagrantError
|
|
|
|
error_key(:pushes_not_defined)
|
|
|
|
end
|
|
|
|
|
|
|
|
class PushStrategyNotDefined < VagrantError
|
|
|
|
error_key(:push_strategy_not_defined)
|
|
|
|
end
|
|
|
|
|
2014-10-23 20:01:43 +00:00
|
|
|
class PushStrategyNotLoaded < VagrantError
|
|
|
|
error_key(:push_strategy_not_loaded)
|
|
|
|
end
|
|
|
|
|
2014-10-23 17:51:18 +00:00
|
|
|
class PushStrategyNotProvided < VagrantError
|
|
|
|
error_key(:push_strategy_not_provided)
|
|
|
|
end
|
|
|
|
|
2014-01-11 01:40:29 +00:00
|
|
|
class RSyncError < VagrantError
|
|
|
|
error_key(:rsync_error)
|
|
|
|
end
|
|
|
|
|
|
|
|
class RSyncNotFound < VagrantError
|
|
|
|
error_key(:rsync_not_found)
|
|
|
|
end
|
|
|
|
|
2014-01-31 03:26:43 +00:00
|
|
|
class RSyncNotInstalledInGuest < VagrantError
|
|
|
|
error_key(:rsync_not_installed_in_guest)
|
|
|
|
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
|
|
|
|
|
2014-02-02 20:26:54 +00:00
|
|
|
class ShellExpandFailed < VagrantError
|
|
|
|
error_key(:shell_expand_failed)
|
|
|
|
end
|
|
|
|
|
2010-08-27 07:01:27 +00:00
|
|
|
class SSHAuthenticationFailed < VagrantError
|
|
|
|
error_key(:ssh_authentication_failed)
|
|
|
|
end
|
|
|
|
|
2014-08-08 16:11:25 +00:00
|
|
|
class SSHChannelOpenFail < VagrantError
|
|
|
|
error_key(:ssh_channel_open_fail)
|
|
|
|
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
|
|
|
|
|
2014-05-02 04:35:02 +00:00
|
|
|
class SSHInvalidShell< VagrantError
|
|
|
|
error_key(:ssh_invalid_shell)
|
|
|
|
end
|
|
|
|
|
2014-10-24 16:58:18 +00:00
|
|
|
class SSHInsertKeyUnsupported < VagrantError
|
|
|
|
error_key(:ssh_insert_key_unsupported)
|
|
|
|
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
|
|
|
|
|
2013-07-09 12:35:07 +00:00
|
|
|
class SSHNoRoute < VagrantError
|
|
|
|
error_key(:ssh_no_route)
|
|
|
|
end
|
|
|
|
|
2012-08-06 17:29:25 +00:00
|
|
|
class SSHNotReady < VagrantError
|
|
|
|
error_key(:ssh_not_ready)
|
|
|
|
end
|
|
|
|
|
2014-01-03 19:26:41 +00:00
|
|
|
class SSHRunRequiresKeys < VagrantError
|
|
|
|
error_key(:ssh_run_requires_keys)
|
|
|
|
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
|
|
|
|
|
2013-11-23 18:47:06 +00:00
|
|
|
class SyncedFolderUnusable < VagrantError
|
|
|
|
error_key(:synced_folder_unusable)
|
|
|
|
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
|
|
|
|
|
2013-12-15 19:28:51 +00:00
|
|
|
class VagrantfileWriteError < VagrantError
|
|
|
|
error_key(:vagrantfile_write_error)
|
|
|
|
end
|
|
|
|
|
2013-11-23 20:23:34 +00:00
|
|
|
class VagrantVersionBad < VagrantError
|
|
|
|
error_key(:vagrant_version_bad)
|
|
|
|
end
|
|
|
|
|
2011-12-21 23:41:14 +00:00
|
|
|
class VBoxManageError < VagrantError
|
|
|
|
error_key(:vboxmanage_error)
|
|
|
|
end
|
|
|
|
|
2015-07-06 00:01:06 +00:00
|
|
|
class VBoxManageLaunchError < VagrantError
|
|
|
|
error_key(:vboxmanage_launch_error)
|
|
|
|
end
|
|
|
|
|
2013-03-29 20:14:00 +00:00
|
|
|
class VBoxManageNotFoundError < VagrantError
|
|
|
|
error_key(:vboxmanage_not_found_error)
|
|
|
|
end
|
|
|
|
|
2013-07-18 17:54:53 +00:00
|
|
|
class VirtualBoxBrokenVersion040214 < VagrantError
|
|
|
|
error_key(:virtualbox_broken_version_040214)
|
|
|
|
end
|
|
|
|
|
2013-11-22 18:26:36 +00:00
|
|
|
class VirtualBoxGuestPropertyNotFound < VagrantError
|
|
|
|
error_key(:virtualbox_guest_property_not_found)
|
|
|
|
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
|
|
|
|
|
2014-08-08 18:24:39 +00:00
|
|
|
class VirtualBoxNoName < VagrantError
|
|
|
|
error_key(:virtualbox_no_name)
|
|
|
|
end
|
|
|
|
|
2014-10-21 22:56:10 +00:00
|
|
|
class VirtualBoxNameExists < VagrantError
|
|
|
|
error_key(:virtualbox_name_exists)
|
|
|
|
end
|
|
|
|
|
2015-07-07 00:13:59 +00:00
|
|
|
class VirtualBoxUserMismatch < VagrantError
|
|
|
|
error_key(:virtualbox_user_mismatch)
|
|
|
|
end
|
|
|
|
|
2014-10-24 16:20:08 +00:00
|
|
|
class VirtualBoxVersionEmpty < VagrantError
|
|
|
|
error_key(:virtualbox_version_empty)
|
|
|
|
end
|
|
|
|
|
2010-10-08 17:44:19 +00:00
|
|
|
class VMBaseMacNotSpecified < VagrantError
|
|
|
|
error_key(:no_base_mac, "vagrant.actions.vm.match_mac")
|
|
|
|
end
|
|
|
|
|
2013-08-29 23:27:00 +00:00
|
|
|
class VMBootBadState < VagrantError
|
|
|
|
error_key(:boot_bad_state)
|
|
|
|
end
|
|
|
|
|
|
|
|
class VMBootTimeout < VagrantError
|
|
|
|
error_key(:boot_timeout)
|
|
|
|
end
|
|
|
|
|
2011-12-22 00:37:59 +00:00
|
|
|
class VMCustomizationFailed < VagrantError
|
|
|
|
error_key(:failure, "vagrant.actions.vm.customize")
|
|
|
|
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
|