Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

missing error codes added #174

Merged
merged 1 commit into from
Nov 20, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 21 additions & 3 deletions errorcode_string.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

38 changes: 38 additions & 0 deletions vzerror.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,14 @@ const (
// 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. */
Expand Down Expand Up @@ -75,3 +83,33 @@ const (
// 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
)
Loading