Shawn Neal c72a412600 Better WinRM command failure messaging
Command failures include the stdout and stderr in the error message just like the SSH communicator.
Its now possible to specify only an error_class and have that use the correct error_key by default.
2014-06-24 10:09:11 -07:00

35 lines
785 B
Ruby

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
class WinRMBadExitStatus < WinRMError
error_key(:winrm_bad_exit_status)
end
class WinRMNotReady < WinRMError
error_key(:winrm_not_ready)
end
class WinRMFileTransferError < WinRMError
error_key(:winrm_file_transfer_error)
end
end
end
end