2023-08-10 16:53:25 -04:00
|
|
|
# Copyright (c) HashiCorp, Inc.
|
|
|
|
|
# SPDX-License-Identifier: BUSL-1.1
|
|
|
|
|
|
2014-02-15 19:28:11 -05: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-15 20:06:26 -05:00
|
|
|
class AdminRequired < HyperVError
|
|
|
|
|
error_key(:admin_required)
|
|
|
|
|
end
|
|
|
|
|
|
2014-02-15 21:13:39 -05:00
|
|
|
class BoxInvalid < HyperVError
|
|
|
|
|
error_key(:box_invalid)
|
|
|
|
|
end
|
|
|
|
|
|
2014-02-26 14:12:24 -05:00
|
|
|
class IPAddrTimeout < HyperVError
|
|
|
|
|
error_key(:ip_addr_timeout)
|
|
|
|
|
end
|
|
|
|
|
|
2014-02-27 11:08:02 -05:00
|
|
|
class NoSwitches < HyperVError
|
|
|
|
|
error_key(:no_switches)
|
|
|
|
|
end
|
|
|
|
|
|
2014-04-09 12:30:17 -04:00
|
|
|
class PowerShellFeaturesDisabled < HyperVError
|
|
|
|
|
error_key(:powershell_features_disabled)
|
|
|
|
|
end
|
|
|
|
|
|
2014-02-15 19:35:04 -05:00
|
|
|
class PowerShellError < HyperVError
|
|
|
|
|
error_key(:powershell_error)
|
|
|
|
|
end
|
|
|
|
|
|
2014-02-15 19:28:11 -05:00
|
|
|
class PowerShellRequired < HyperVError
|
|
|
|
|
error_key(:powershell_required)
|
|
|
|
|
end
|
2014-02-15 20:06:26 -05:00
|
|
|
|
|
|
|
|
class WindowsRequired < HyperVError
|
|
|
|
|
error_key(:windows_required)
|
|
|
|
|
end
|
2018-06-18 18:33:25 -04:00
|
|
|
|
|
|
|
|
class SystemAccessRequired < HyperVError
|
|
|
|
|
error_key(:system_access_required)
|
|
|
|
|
end
|
2014-02-15 19:28:11 -05:00
|
|
|
end
|
|
|
|
|
end
|
|
|
|
|
end
|