YugabyteDB (2.13.0.0-b42, bfc6a6643e7399ac8a0e81d06a3ee6d6571b33ab)

Coverage Report

Created: 2022-03-09 17:30

/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.04M
YB_STATUS_CODE(Ok, OK, 0, "OK")
16
55.4k
YB_STATUS_CODE(NotFound, NOT_FOUND, 1, "Not found")
17
18.9k
YB_STATUS_CODE(Corruption, CORRUPTION, 2, "Corruption")
18
17.2k
YB_STATUS_CODE(NotSupported, NOT_SUPPORTED, 3, "Not implemented")
19
17.9k
YB_STATUS_CODE(InvalidArgument, INVALID_ARGUMENT, 4, "Invalid argument")
20
385k
YB_STATUS_CODE(IOError, IO_ERROR, 5, "IO error")
21
21.9k
YB_STATUS_CODE(AlreadyPresent, ALREADY_PRESENT, 6, "Already present")
22
17.2k
YB_STATUS_CODE(RuntimeError, RUNTIME_ERROR, 7, "Runtime error")
23
158k
YB_STATUS_CODE(NetworkError, NETWORK_ERROR, 8, "Network error")
24
79.2k
YB_STATUS_CODE(IllegalState, ILLEGAL_STATE, 9, "Illegal state")
25
17.1k
YB_STATUS_CODE(NotAuthorized, NOT_AUTHORIZED, 10, "Not authorized")
26
38.2k
YB_STATUS_CODE(Aborted, ABORTED, 11, "Aborted")
27
22.8k
YB_STATUS_CODE(RemoteError, REMOTE_ERROR, 12, "Remote error")
28
34.1k
YB_STATUS_CODE(ServiceUnavailable, SERVICE_UNAVAILABLE, 13, "Service unavailable")
29
27.7k
YB_STATUS_CODE(TimedOut, TIMED_OUT, 14, "Timed out")
30
17.1k
YB_STATUS_CODE(Uninitialized, UNINITIALIZED, 15, "Uninitialized")
31
17.1k
YB_STATUS_CODE(ConfigurationError, CONFIGURATION_ERROR, 16, "Configuration error")
32
17.1k
YB_STATUS_CODE(Incomplete, INCOMPLETE, 17, "Incomplete")
33
17.1k
YB_STATUS_CODE(EndOfFile, END_OF_FILE, 18, "End of file")
34
17.1k
YB_STATUS_CODE(InvalidCommand, INVALID_COMMAND, 19, "Invalid command")
35
17.1k
YB_STATUS_CODE(QLError, QL_ERROR, 20, "Query error")
36
17.3k
YB_STATUS_CODE(InternalError, INTERNAL_ERROR, 21, "Internal error")
37
24.2k
YB_STATUS_CODE(Expired, EXPIRED, 22, "Operation expired")
38
20.0k
YB_STATUS_CODE(LeaderNotReadyToServe, LEADER_NOT_READY_TO_SERVE, 23,
39
0
               "Leader not ready to serve requests")
40
17.2k
YB_STATUS_CODE(LeaderHasNoLease, LEADER_HAS_NO_LEASE, 24, "Leader does not have a valid lease")
41
709k
YB_STATUS_CODE(TryAgain, TRY_AGAIN_CODE, 25, "Operation failed. Try again")
42
17.1k
YB_STATUS_CODE(Busy, BUSY, 26, "Resource busy")
43
17.3k
YB_STATUS_CODE(ShutdownInProgress, SHUTDOWN_IN_PROGRESS, 27, "Shutdown in progress")
44
108k
YB_STATUS_CODE(MergeInProgress, MERGE_IN_PROGRESS, 28, "Merge in progress")
45
17.1k
YB_STATUS_CODE(Combined, COMBINED_ERROR, 29,
46
0
               "Combined status representing multiple status failures")
47
17.1k
YB_STATUS_CODE(SnapshotTooOld, SNAPSHOT_TOO_OLD, 30, "Snapshot too old")