2014-02-16 00:28:11 +00:00
|
|
|
module VagrantPlugins
|
|
|
|
module HyperV
|
|
|
|
module Errors
|
|
|
|
# A convenient superclass for all our errors.
|
|
|
|
class HyperVError < Vagrant::Errors::VagrantError
|
|
|
|
error_namespace("vagrant_hyperv.errors")
|
|
|
|
end
|
|
|
|
|
2014-02-16 01:06:26 +00:00
|
|
|
class AdminRequired < HyperVError
|
|
|
|
error_key(:admin_required)
|
|
|
|
end
|
|
|
|
|
2014-02-16 02:13:39 +00:00
|
|
|
class BoxInvalid < HyperVError
|
|
|
|
error_key(:box_invalid)
|
|
|
|
end
|
|
|
|
|
2014-02-26 19:12:24 +00:00
|
|
|
class IPAddrTimeout < HyperVError
|
|
|
|
error_key(:ip_addr_timeout)
|
|
|
|
end
|
|
|
|
|
2014-02-27 16:08:02 +00:00
|
|
|
class NoSwitches < HyperVError
|
|
|
|
error_key(:no_switches)
|
|
|
|
end
|
|
|
|
|
2014-02-16 00:35:04 +00:00
|
|
|
class PowerShellError < HyperVError
|
|
|
|
error_key(:powershell_error)
|
|
|
|
end
|
|
|
|
|
2014-02-16 00:28:11 +00:00
|
|
|
class PowerShellRequired < HyperVError
|
|
|
|
error_key(:powershell_required)
|
|
|
|
end
|
2014-02-16 01:06:26 +00:00
|
|
|
|
|
|
|
class WindowsRequired < HyperVError
|
|
|
|
error_key(:windows_required)
|
|
|
|
end
|
2014-02-16 00:28:11 +00:00
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|