C++ Server-Side SDK
LaunchDarkly SDK
Loading...
Searching...
No Matches
error.hpp
1#pragma once
2
3#include <cstdint>
4#include <limits>
5#include <ostream>
6
7namespace launchdarkly {
8
9enum class Error : std::uint32_t {
10 KReserved1 = 0,
11 KReserved2 = 1,
12 /* Common lib errors: 2-9999 */
13 kConfig_Endpoints_EmptyURL = 100,
14 kConfig_Endpoints_AllURLsMustBeSet = 101,
15
16 kConfig_ApplicationInfo_EmptyKeyOrValue = 200,
17 kConfig_ApplicationInfo_ValueTooLong = 201,
18 kConfig_ApplicationInfo_InvalidKeyCharacters = 202,
19 kConfig_ApplicationInfo_InvalidValueCharacters = 203,
20
21 kConfig_Events_ZeroCapacity = 300,
22
23 kConfig_SDKKey_Empty = 400,
24 /* Client-side errors: 10000-19999 */
25 /* Server-side errors: 20000-29999 */
26 kConfig_DataSystem_LazyLoad_MissingSource = 20000,
27 kMax = std::numeric_limits<std::uint32_t>::max()
28};
29
30char const* ErrorToString(Error err);
31std::ostream& operator<<(std::ostream& os, Error const& err);
32
33} // namespace launchdarkly