23 #ifndef INCLUDE_HUEPLUSPLUS_HUE_EXCEPTION_H 24 #define INCLUDE_HUEPLUSPLUS_HUE_EXCEPTION_H 29 #include "json/json.hpp" 60 const char* what()
const noexcept
override;
63 const FileInfo& GetFile()
const noexcept;
76 std::string whatMessage;
97 int GetErrorNumber()
const noexcept;
99 const std::string& GetAddress()
const noexcept;
101 const std::string& GetDescription()
const noexcept;
112 static std::string GetMessage(
int error,
const std::string& addr,
const std::string& description);
117 std::string description;
Exception class with file information. Base class of all custom exception classes.
Definition: HueException.h:49
std::string func
Current function from func. Empty if unknown.
Definition: HueException.h:41
std::string ToString() const
String representation of func, file and line.
Definition: HueException.cpp:104
Namespace for the hueplusplus library.
Definition: Action.h:27
std::string filename
Current file name from FILE. Empty if unknown.
Definition: HueException.h:37
Contains information about error location, use CURRENT_FILE_INFO to create.
Definition: HueException.h:34
int line
Current line number from LINE. -1 if unknown.
Definition: HueException.h:39
Exception caused by a Hue API "error" response with additional information.
Definition: HueException.h:83