2014-03-26 23:45:46 +00:00
|
|
|
module VagrantPlugins
|
|
|
|
module DockerProvider
|
|
|
|
module Errors
|
2014-04-10 15:57:59 +00:00
|
|
|
class DockerError < Vagrant::Errors::VagrantError
|
|
|
|
error_namespace("docker_provider.errors")
|
|
|
|
end
|
|
|
|
|
2014-04-16 03:52:06 +00:00
|
|
|
class CommunicatorNonDocker < DockerError
|
|
|
|
error_key(:communicator_non_docker)
|
|
|
|
end
|
|
|
|
|
2017-05-11 17:13:31 +00:00
|
|
|
class ComposeLockTimeoutError < DockerError
|
|
|
|
error_key(:compose_lock_timeout)
|
|
|
|
end
|
|
|
|
|
2017-05-05 20:55:59 +00:00
|
|
|
class ContainerNotRunningError < DockerError
|
|
|
|
error_key(:not_running)
|
|
|
|
end
|
|
|
|
|
|
|
|
class ContainerNotCreatedError < DockerError
|
|
|
|
error_key(:not_created)
|
|
|
|
end
|
|
|
|
|
2017-05-12 21:58:49 +00:00
|
|
|
class DockerComposeNotInstalledError < DockerError
|
|
|
|
error_key(:docker_compose_not_installed)
|
|
|
|
end
|
|
|
|
|
2014-04-11 01:26:19 +00:00
|
|
|
class ExecuteError < DockerError
|
|
|
|
error_key(:execute_error)
|
|
|
|
end
|
|
|
|
|
2016-05-31 22:43:21 +00:00
|
|
|
class ExecCommandRequired < DockerError
|
|
|
|
error_key(:exec_command_required)
|
|
|
|
end
|
|
|
|
|
2014-05-21 03:41:48 +00:00
|
|
|
class HostVMCommunicatorNotReady < DockerError
|
|
|
|
error_key(:host_vm_communicator_not_ready)
|
|
|
|
end
|
|
|
|
|
2014-04-10 15:57:59 +00:00
|
|
|
class ImageNotConfiguredError < DockerError
|
2014-03-26 23:45:46 +00:00
|
|
|
error_key(:docker_provider_image_not_configured)
|
|
|
|
end
|
2014-04-10 15:57:59 +00:00
|
|
|
|
|
|
|
class NfsWithoutPrivilegedError < DockerError
|
2014-03-26 23:45:46 +00:00
|
|
|
error_key(:docker_provider_nfs_without_privileged)
|
|
|
|
end
|
2014-04-10 15:57:59 +00:00
|
|
|
|
2019-03-21 17:50:45 +00:00
|
|
|
class NetworkAddressInvalid < DockerError
|
|
|
|
error_key(:network_address_invalid)
|
|
|
|
end
|
|
|
|
|
|
|
|
class NetworkIPAddressRequired < DockerError
|
|
|
|
error_key(:network_address_required)
|
|
|
|
end
|
|
|
|
|
|
|
|
class NetworkSubnetInvalid < DockerError
|
|
|
|
error_key(:network_subnet_invalid)
|
|
|
|
end
|
|
|
|
|
2019-03-04 21:17:14 +00:00
|
|
|
class NetworkInvalidOption < DockerError
|
|
|
|
error_key(:network_invalid_option)
|
|
|
|
end
|
|
|
|
|
2019-03-19 18:29:16 +00:00
|
|
|
class NetworkNameMissing < DockerError
|
|
|
|
error_key(:network_name_missing)
|
|
|
|
end
|
|
|
|
|
|
|
|
class NetworkNameUndefined < DockerError
|
|
|
|
error_key(:network_name_undefined)
|
|
|
|
end
|
|
|
|
|
2019-03-21 23:06:11 +00:00
|
|
|
class NetworkNoInterfaces < DockerError
|
|
|
|
error_key(:network_no_interfaces)
|
|
|
|
end
|
|
|
|
|
2014-10-22 00:04:40 +00:00
|
|
|
class PackageNotSupported < DockerError
|
|
|
|
error_key(:package_not_supported)
|
|
|
|
end
|
|
|
|
|
2014-04-17 23:20:49 +00:00
|
|
|
class StateNotRunning < DockerError
|
|
|
|
error_key(:state_not_running)
|
|
|
|
end
|
|
|
|
|
|
|
|
class StateStopped < DockerError
|
|
|
|
error_key(:state_stopped)
|
|
|
|
end
|
|
|
|
|
2015-07-08 16:18:43 +00:00
|
|
|
class SuspendNotSupported < DockerError
|
|
|
|
error_key(:suspend_not_supported)
|
|
|
|
end
|
|
|
|
|
2014-04-10 15:57:59 +00:00
|
|
|
class SyncedFolderNonDocker < DockerError
|
|
|
|
error_key(:synced_folder_non_docker)
|
|
|
|
end
|
2015-07-08 18:31:24 +00:00
|
|
|
|
|
|
|
class VagrantfileNotFound < DockerError
|
|
|
|
error_key(:vagrantfile_not_found)
|
|
|
|
end
|
2014-03-26 23:45:46 +00:00
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|