2014-08-27 19:17:30 +00:00
|
|
|
module VagrantPlugins
|
|
|
|
module CommandPS
|
|
|
|
module Errors
|
|
|
|
# A convenient superclass for all our errors.
|
2015-06-06 05:24:05 +00:00
|
|
|
class PSCommandError < Vagrant::Errors::VagrantError
|
2014-08-27 19:17:30 +00:00
|
|
|
error_namespace("vagrant_ps.errors")
|
|
|
|
end
|
|
|
|
|
2015-06-06 05:24:05 +00:00
|
|
|
class HostUnsupported < PSCommandError
|
2014-08-27 19:17:30 +00:00
|
|
|
error_key(:host_unsupported)
|
|
|
|
end
|
|
|
|
|
2015-06-06 05:24:05 +00:00
|
|
|
class PSRemotingUndetected < PSCommandError
|
2014-08-27 19:17:30 +00:00
|
|
|
error_key(:ps_remoting_undetected)
|
|
|
|
end
|
2015-06-06 05:24:05 +00:00
|
|
|
|
|
|
|
class PowerShellError < PSCommandError
|
|
|
|
error_key(:powershell_error)
|
|
|
|
end
|
2014-08-27 19:17:30 +00:00
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|