package
3.0.0-rc.3+incompatible
Repository: https://github.com/vitessio/vitess.git
Documentation: pkg.go.dev
# Constants
ABORTED indicates the operation was aborted, typically due to a concurrency issue like sequencer check failures, transaction aborts, etc.
ALREADY_EXISTS means an attempt to create an entity failed because one already exists.
CANCELED indicates the operation was cancelled (typically by the caller).
DATA_LOSS indicates unrecoverable data loss or corruption.
DEADLINE_EXCEEDED means operation expired before completion.
FAILED_PRECONDITION indicates operation was rejected because the system is not in a state required for the operation's execution.
INTERNAL errors.
INVALID_ARGUMENT indicates client specified an invalid argument.
NOT_FOUND means some requested entity (e.g., file or directory) was not found.
OK is returned on success.
OUT_OF_RANGE means operation was attempted past the valid range.
PERMISSION_DENIED indicates the caller does not have permission to execute the specified operation.
RESOURCE_EXHAUSTED indicates some resource has been exhausted, perhaps a per-user quota, or perhaps the entire file system is out of space.
UNAUTHENTICATED indicates the request does not have valid authentication credentials for the operation.
UNAVAILABLE indicates the service is currently unavailable.
UNIMPLEMENTED indicates operation is not implemented or not supported/enabled in this service.
UNKNOWN error.
BAD_INPUT_LEGACY is returned when an end-user either sends SQL that couldn't be parsed correctly, or tries a query that isn't supported by Vitess.
CANCELLED_LEGACY means that the context was cancelled (and noticed in the app layer, as opposed to the RPC layer).
DEADLINE_EXCEEDED_LEGACY is returned when an action is taking longer than a given timeout.
INTEGRITY_ERROR_LEGACY is returned on integrity error from MySQL, usually due to duplicate primary keys.
INTERNAL_ERROR_LEGACY means some invariants expected by underlying system has been broken.
NOT_IN_TX_LEGACY means that we're not currently in a transaction, but we should be.
PERMISSION_DENIED_LEGACY errors are returned when a user requests access to something that they don't have permissions for.
QUERY_NOT_SERVED_LEGACY means that a query could not be served right now.
RESOURCE_EXHAUSTED_LEGACY is returned when a query exceeds its quota in some dimension and can't be completed due to that.
SUCCESS_LEGACY is returned from a successful call.
TRANSIENT_ERROR_LEGACY is used for when there is some error that we expect we can recover from automatically - often due to a resource limit temporarily being reached.
UNAUTHENTICATED_LEGACY errors are returned when a user requests access to something, and we're unable to verify the user's authentication.
UNKNOWN_ERROR_LEGACY includes: 1.
# Type aliases
Code represents canonical error codes.
LegacyErrorCode is the enum values for Errors.