2014-03-26 19:45:46 -04:00
|
|
|
module VagrantPlugins
|
|
|
|
|
module DockerProvider
|
|
|
|
|
module Errors
|
2014-04-10 11:57:59 -04:00
|
|
|
class DockerError < Vagrant::Errors::VagrantError
|
|
|
|
|
error_namespace("docker_provider.errors")
|
|
|
|
|
end
|
|
|
|
|
|
2014-04-15 23:52:06 -04:00
|
|
|
class CommunicatorNonDocker < DockerError
|
|
|
|
|
error_key(:communicator_non_docker)
|
|
|
|
|
end
|
|
|
|
|
|
2014-04-10 21:26:19 -04:00
|
|
|
class ExecuteError < DockerError
|
|
|
|
|
error_key(:execute_error)
|
|
|
|
|
end
|
|
|
|
|
|
2014-05-20 23:41:48 -04:00
|
|
|
class HostVMCommunicatorNotReady < DockerError
|
|
|
|
|
error_key(:host_vm_communicator_not_ready)
|
|
|
|
|
end
|
|
|
|
|
|
2014-04-10 11:57:59 -04:00
|
|
|
class ImageNotConfiguredError < DockerError
|
2014-03-26 19:45:46 -04:00
|
|
|
error_key(:docker_provider_image_not_configured)
|
|
|
|
|
end
|
2014-04-10 11:57:59 -04:00
|
|
|
|
|
|
|
|
class NfsWithoutPrivilegedError < DockerError
|
2014-03-26 19:45:46 -04:00
|
|
|
error_key(:docker_provider_nfs_without_privileged)
|
|
|
|
|
end
|
2014-04-10 11:57:59 -04:00
|
|
|
|
2014-04-17 19:20:49 -04:00
|
|
|
class StateNotRunning < DockerError
|
|
|
|
|
error_key(:state_not_running)
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
class StateStopped < DockerError
|
|
|
|
|
error_key(:state_stopped)
|
|
|
|
|
end
|
|
|
|
|
|
2014-04-10 11:57:59 -04:00
|
|
|
class SyncedFolderNonDocker < DockerError
|
|
|
|
|
error_key(:synced_folder_non_docker)
|
|
|
|
|
end
|
2014-03-26 19:45:46 -04:00
|
|
|
end
|
|
|
|
|
end
|
|
|
|
|
end
|