1 #pragma once 2 3 #include <system_error> 4 5 namespace sdeventplus 6 { 7 8 /** @class SdEventError 9 * @brief Holds information about underlying sd_event 10 * issued errors 11 */ 12 class SdEventError final : public std::system_error 13 { 14 public: 15 /** @brief Creates a new SdEventError from error data 16 * 17 * @param[in] r - The positive errno code 18 * @param[in] prefix - The prefix string to display in the what() 19 */ 20 SdEventError(int r, const char* prefix); 21 }; 22 23 } // namespace sdeventplus 24