forked from Code-Hex/vz
-
Notifications
You must be signed in to change notification settings - Fork 1
/
vzerror.go
77 lines (59 loc) · 2.76 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
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
)
/* 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
)