File: errors.rb

package info (click to toggle)
vagrant 2.3.7%2Bgit20230731.5fc64cde%2Bdfsg-3
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 17,616 kB
  • sloc: ruby: 111,820; sh: 462; makefile: 123; ansic: 34; lisp: 1
file content (46 lines) | stat: -rw-r--r-- 1,064 bytes parent folder | download | duplicates (5)
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
module VagrantPlugins
  module HyperV
    module Errors
      # A convenient superclass for all our errors.
      class HyperVError < Vagrant::Errors::VagrantError
        error_namespace("vagrant_hyperv.errors")
      end

      class AdminRequired < HyperVError
        error_key(:admin_required)
      end

      class BoxInvalid < HyperVError
        error_key(:box_invalid)
      end

      class IPAddrTimeout < HyperVError
        error_key(:ip_addr_timeout)
      end

      class NoSwitches < HyperVError
        error_key(:no_switches)
      end

      class PowerShellFeaturesDisabled < HyperVError
        error_key(:powershell_features_disabled)
      end

      class PowerShellError < HyperVError
        error_key(:powershell_error)
      end

      class PowerShellRequired < HyperVError
        error_key(:powershell_required)
      end

      class WindowsRequired < HyperVError
        error_key(:windows_required)
      end

      class SystemAccessRequired < HyperVError
        error_key(:system_access_required)
      end
    end
  end
end