-
-
Notifications
You must be signed in to change notification settings - Fork 50
/
vzerror.go
115 lines (89 loc) · 4.02 KB
/
vzerror.go
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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
package vz
// Error type returned by the Virtualization framework.
// The NSError domain is VZErrorDomain, the code is one of the ErrorCode constants.
//
//go:generate stringer -type=ErrorCode
type ErrorCode int
const (
// ErrorInternal is an internal error such as the virtual machine unexpectedly stopping.
ErrorInternal ErrorCode = 1 + iota
// ErrorInvalidVirtualMachineConfiguration represents invalid machine configuration.
ErrorInvalidVirtualMachineConfiguration
// ErrorInvalidVirtualMachineState represents API used with a machine in the wrong state
// (e.g. interacting with a machine before it is running).
ErrorInvalidVirtualMachineState
// ErrorInvalidVirtualMachineStateTransition is invalid change of state
// (e.g. pausing a virtual machine that is not started).
ErrorInvalidVirtualMachineStateTransition
// ErrorInvalidDiskImage represents unrecognized disk image format or invalid disk image.
ErrorInvalidDiskImage
// ErrorVirtualMachineLimitExceeded represents the running virtual machine limit was exceeded.
// Available from macOS 12.0 and above.
ErrorVirtualMachineLimitExceeded
// ErrorNetworkError represents network error occurred.
// Available from macOS 13.0 and above.
ErrorNetworkError
// ErrorOutOfDiskSpace represents machine ran out of disk space.
// Available from macOS 13.0 and above.
ErrorOutOfDiskSpace
// ErrorOperationCancelled represents the operation was cancelled.
// Available from macOS 13.0 and above.
ErrorOperationCancelled
// ErrorNotSupported represents the operation is not supported.
// Available from macOS 13.0 and above.
ErrorNotSupported
// ErrorSave represents the save operation failed.
// Available from macOS 14.0 and above.
ErrorSave
// ErrorRestore represents the restore operation failed.
// Available from macOS 14.0 and above.
ErrorRestore
)
/* macOS installation errors. */
const (
// ErrorRestoreImageCatalogLoadFailed represents the restore image catalog failed to load.
// Available from macOS 13.0 and above.
ErrorRestoreImageCatalogLoadFailed ErrorCode = 10001 + iota
// ErrorInvalidRestoreImageCatalog represents the restore image catalog is invalid.
// Available from macOS 13.0 and above.
ErrorInvalidRestoreImageCatalog
// ErrorNoSupportedRestoreImagesInCatalog represents the restore image catalog has no supported restore images.
// Available from macOS 13.0 and above.
ErrorNoSupportedRestoreImagesInCatalog
// ErrorRestoreImageLoadFailed represents the restore image failed to load.
// Available from macOS 13.0 and above.
ErrorRestoreImageLoadFailed
// ErrorInvalidRestoreImage represents the restore image is invalid.
// Available from macOS 13.0 and above.
ErrorInvalidRestoreImage
// ErrorInstallationRequiresUpdate represents a software update is required to complete the installation.
// Available from macOS 13.0 and above.
ErrorInstallationRequiresUpdate
// ErrorInstallationFailed is an error occurred during installation.
// Available from macOS 13.0 and above.
ErrorInstallationFailed
)
/* Network Block Device errors. */
const (
// ErrorNetworkBlockDeviceNegotiationFailed represents the connection or the negotiation with the NBD server failed.
// Available from macOS 14.0 and above.
ErrorNetworkBlockDeviceNegotiationFailed ErrorCode = 20001 + iota
// ErrorNetworkBlockDeviceDisconnected represents the NBD client is disconnected from the server.
// Available from macOS 14.0 and above.
ErrorNetworkBlockDeviceDisconnected
)
/* USB device hot-plug errors. */
const (
// ErrorUSBControllerNotFound represents controller not found.
// Available from macOS 15.0 and above.
ErrorUSBControllerNotFound ErrorCode = 30001 + iota
// ErrorDeviceAlreadyAttached represents Device is already attached.
// Available from macOS 15.0 and above.
ErrorDeviceAlreadyAttached
// ErrorDeviceInitializationFailure represents device initialization failure.
// Available from macOS 15.0 and above.
ErrorDeviceInitializationFailure
// ErrorDeviceNotFound represents device not found.
// Available from macOS 15.0 and above.
ErrorDeviceNotFound
)