3 #include <launchdarkly/data_sources/data_source_status_error_kind.hpp>
9 namespace launchdarkly::common::data_sources {
16 using StatusCodeType = std::uint64_t;
17 using ErrorKind = DataSourceStatusErrorKind;
18 using DateTime = std::chrono::time_point<std::chrono::system_clock>;
23 [[nodiscard]] ErrorKind
Kind()
const {
return kind_; }
28 [[nodiscard]] StatusCodeType
StatusCode()
const {
return status_code_; }
36 [[nodiscard]] std::string
const&
Message()
const {
return message_; }
41 [[nodiscard]] DateTime
Time()
const {
return time_; }
44 StatusCodeType status_code,
48 status_code_(status_code),
49 message_(std::move(message)),
54 StatusCodeType status_code_;
59 std::ostream& operator<<(std::ostream& out,
60 DataSourceStatusErrorInfo
const& error);
Definition: data_source_status_error_info.hpp:14
ErrorKind Kind() const
Definition: data_source_status_error_info.hpp:23
DateTime Time() const
Definition: data_source_status_error_info.hpp:41
StatusCodeType StatusCode() const
Definition: data_source_status_error_info.hpp:28
std::string const & Message() const
Definition: data_source_status_error_info.hpp:36