File: errors.rb

package info (click to toggle)
vagrant 2.2.3%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 8,072 kB
  • sloc: ruby: 80,731; sh: 369; makefile: 9; lisp: 1
file content (69 lines) | stat: -rw-r--r-- 1,553 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
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 TransientError < WinRMError
      end

      class AuthenticationFailed < WinRMError
        error_key(:authentication_failed)
      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

      class InvalidTransport < WinRMError
        error_key(:invalid_transport)
      end

      class SSLError < WinRMError
        error_key(:ssl_error)
      end

      class ConnectionTimeout < TransientError
        error_key(:connection_timeout)
      end

      class Disconnected < TransientError
        error_key(:disconnected)
      end

      class ConnectionRefused < TransientError
        error_key(:connection_refused)
      end

      class ConnectionReset < TransientError
        error_key(:connection_reset)
      end

      class HostDown < TransientError
        error_key(:host_down)
      end

      class NoRoute < TransientError
        error_key(:no_route)
      end
    end
  end
end