2014-03-11 05:38:31 +00:00
|
|
|
module VagrantPlugins
|
|
|
|
module CommunicatorWinRM
|
|
|
|
module Errors
|
|
|
|
# A convenient superclass for all our errors.
|
|
|
|
class WinRMError < Vagrant::Errors::VagrantError
|
|
|
|
error_namespace("vagrant_winrm.errors")
|
|
|
|
end
|
|
|
|
|
|
|
|
class AuthError < WinRMError
|
|
|
|
error_key(:auth_error)
|
|
|
|
end
|
|
|
|
|
|
|
|
class ExecutionError < WinRMError
|
|
|
|
error_key(:execution_error)
|
|
|
|
end
|
|
|
|
|
|
|
|
class InvalidShell < WinRMError
|
|
|
|
error_key(:invalid_shell)
|
|
|
|
end
|
|
|
|
|
2014-06-24 17:09:11 +00:00
|
|
|
class WinRMBadExitStatus < WinRMError
|
|
|
|
error_key(:winrm_bad_exit_status)
|
|
|
|
end
|
|
|
|
|
2014-03-11 05:38:31 +00:00
|
|
|
class WinRMNotReady < WinRMError
|
|
|
|
error_key(:winrm_not_ready)
|
|
|
|
end
|
2014-04-22 21:54:13 +00:00
|
|
|
|
|
|
|
class WinRMFileTransferError < WinRMError
|
|
|
|
error_key(:winrm_file_transfer_error)
|
|
|
|
end
|
2014-07-22 23:58:27 +00:00
|
|
|
|
|
|
|
class WinRMInvalidTransport < WinRMError
|
|
|
|
error_key(:invalid_transport)
|
|
|
|
end
|
2014-03-11 05:38:31 +00:00
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|