42 #ifndef KALLISTO_ERROR_HPP_ 43 #define KALLISTO_ERROR_HPP_ 85 std::string m_message;
161 void kallisto_error_handler(
unsigned int& error_code,
const char * file,
unsigned int line,
const char *
function);
172 #define KALLISTO_ERROR_HANDLER(ERR_CODE) \ 175 kallisto::error::kallisto_error_handler((ERR_CODE), __FILE__, __LINE__, __FUNCTION__); \ 184 #define KALLISTO_ERROR_CHECK(ERR_CODE) \ 187 unsigned int LOCAL_ERR_CODE = (ERR_CODE); \ 188 if (LOCAL_ERR_CODE != 0) \ 190 KALLISTO_ERROR_HANDLER(LOCAL_ERR_CODE); \ static KallistoDetailedResult build(const KallistoResult result)
No Memory for operation.
Definition: kallisto_error.hpp:61
BLE Device operation error.
Definition: kallisto_error.hpp:76
Invalid Flags.
Definition: kallisto_error.hpp:67
void kallisto_error_handler(unsigned int &error_code, const char *file, unsigned int line, const char *function)
Definition: bluetooth_adapter.hpp:52
Invalid state, operation disallowed in this state.
Definition: kallisto_error.hpp:65
Internal Error.
Definition: kallisto_error.hpp:60
Class that encapsulates a result.
Definition: kallisto_error.hpp:81
KallistoResult
Set of error code defines.
Definition: kallisto_error.hpp:58
Successful command.
Definition: kallisto_error.hpp:59
Invalid Data.
Definition: kallisto_error.hpp:68
Not supported.
Definition: kallisto_error.hpp:63
Null Pointer.
Definition: kallisto_error.hpp:71
~KallistoDetailedResult()
std::string toString() const
Busy.
Definition: kallisto_error.hpp:74
Data size exceeds limit.
Definition: kallisto_error.hpp:69
Operation timed out.
Definition: kallisto_error.hpp:70
Invalid Length.
Definition: kallisto_error.hpp:66
Bad Memory Address.
Definition: kallisto_error.hpp:73
std::string getMessage() const
BLE Adapter operation error.
Definition: kallisto_error.hpp:75
Invalid Parameter.
Definition: kallisto_error.hpp:64
Not found.
Definition: kallisto_error.hpp:62
KallistoDetailedResult & operator=(const KallistoDetailedResult &other)
Forbidden Operation.
Definition: kallisto_error.hpp:72
KallistoResult getResult() const