/Users/deen/code/yugabyte-db/src/yb/util/status_codes.h
Line | Count | Source (jump to first uncovered line) |
1 | | // Copyright (c) YugaByte, Inc. |
2 | | // |
3 | | // Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except |
4 | | // in compliance with the License. You may obtain a copy of the License at |
5 | | // |
6 | | // http://www.apache.org/licenses/LICENSE-2.0 |
7 | | // |
8 | | // Unless required by applicable law or agreed to in writing, software distributed under the License |
9 | | // is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express |
10 | | // or implied. See the License for the specific language governing permissions and limitations |
11 | | // under the License. |
12 | | // |
13 | | // NOLINT(build/header_guard) |
14 | | |
15 | 1.63M | YB_STATUS_CODE(Ok, OK, 0, "OK")1.60M |
16 | 656k | YB_STATUS_CODE(NotFound, NOT_FOUND, 1, "Not found")628k |
17 | 30.0k | YB_STATUS_CODE(Corruption, CORRUPTION, 2, "Corruption")1.85k |
18 | 28.2k | YB_STATUS_CODE(NotSupported, NOT_SUPPORTED, 3, "Not implemented")65 |
19 | 128k | YB_STATUS_CODE(InvalidArgument, INVALID_ARGUMENT, 4, "Invalid argument")99.9k |
20 | 67.1k | YB_STATUS_CODE(IOError, IO_ERROR, 5, "IO error")38.9k |
21 | 45.3k | YB_STATUS_CODE(AlreadyPresent, ALREADY_PRESENT, 6, "Already present")17.1k |
22 | 28.2k | YB_STATUS_CODE(RuntimeError, RUNTIME_ERROR, 7, "Runtime error")73 |
23 | 363k | YB_STATUS_CODE(NetworkError, NETWORK_ERROR, 8, "Network error")335k |
24 | 126k | YB_STATUS_CODE(IllegalState, ILLEGAL_STATE, 9, "Illegal state")97.9k |
25 | 28.1k | YB_STATUS_CODE(NotAuthorized, NOT_AUTHORIZED, 10, "Not authorized")19 |
26 | 75.5k | YB_STATUS_CODE(Aborted, ABORTED, 11, "Aborted")47.3k |
27 | 61.0k | YB_STATUS_CODE(RemoteError, REMOTE_ERROR, 12, "Remote error")32.8k |
28 | 1.38M | YB_STATUS_CODE(ServiceUnavailable, SERVICE_UNAVAILABLE, 13, "Service unavailable")1.35M |
29 | 64.2k | YB_STATUS_CODE(TimedOut, TIMED_OUT, 14, "Timed out")36.1k |
30 | 28.1k | YB_STATUS_CODE(Uninitialized, UNINITIALIZED, 15, "Uninitialized")0 |
31 | 28.1k | YB_STATUS_CODE(ConfigurationError, CONFIGURATION_ERROR, 16, "Configuration error")0 |
32 | 28.1k | YB_STATUS_CODE(Incomplete, INCOMPLETE, 17, "Incomplete")1 |
33 | 28.1k | YB_STATUS_CODE(EndOfFile, END_OF_FILE, 18, "End of file")0 |
34 | 28.1k | YB_STATUS_CODE(InvalidCommand, INVALID_COMMAND, 19, "Invalid command")0 |
35 | 30.1k | YB_STATUS_CODE(QLError, QL_ERROR, 20, "Query error")1.96k |
36 | 28.5k | YB_STATUS_CODE(InternalError, INTERNAL_ERROR, 21, "Internal error")348 |
37 | 44.7k | YB_STATUS_CODE(Expired, EXPIRED, 22, "Operation expired")16.5k |
38 | 33.5k | YB_STATUS_CODE(LeaderNotReadyToServe, LEADER_NOT_READY_TO_SERVE, 23, |
39 | 5.43k | "Leader not ready to serve requests") |
40 | 28.9k | YB_STATUS_CODE(LeaderHasNoLease, LEADER_HAS_NO_LEASE, 24, "Leader does not have a valid lease")804 |
41 | 1.30M | YB_STATUS_CODE(TryAgain, TRY_AGAIN_CODE, 25, "Operation failed. Try again")1.27M |
42 | 28.1k | YB_STATUS_CODE(Busy, BUSY, 26, "Resource busy")0 |
43 | 28.3k | YB_STATUS_CODE(ShutdownInProgress, SHUTDOWN_IN_PROGRESS, 27, "Shutdown in progress")217 |
44 | 117k | YB_STATUS_CODE(MergeInProgress, MERGE_IN_PROGRESS, 28, "Merge in progress")89.5k |
45 | 28.1k | YB_STATUS_CODE(Combined, COMBINED_ERROR, 29, |
46 | 0 | "Combined status representing multiple status failures") |
47 | 28.1k | YB_STATUS_CODE(SnapshotTooOld, SNAPSHOT_TOO_OLD, 30, "Snapshot too old") |