36 #ifndef ARM_OCSD_ERROR_H_INCLUDED 37 #define ARM_OCSD_ERROR_H_INCLUDED 39 #include "opencsd/ocsd_if_types.h" 60 ocsdError(
const ocsd_err_severity_t sev_type,
const ocsd_err_t code);
61 ocsdError(
const ocsd_err_severity_t sev_type,
const ocsd_err_t code,
const ocsd_trc_index_t idx);
62 ocsdError(
const ocsd_err_severity_t sev_type,
const ocsd_err_t code,
const ocsd_trc_index_t idx,
const uint8_t chan_id);
63 ocsdError(
const ocsd_err_severity_t sev_type,
const ocsd_err_t code,
const std::string &msg);
64 ocsdError(
const ocsd_err_severity_t sev_type,
const ocsd_err_t code,
const ocsd_trc_index_t idx,
const std::string &msg);
65 ocsdError(
const ocsd_err_severity_t sev_type,
const ocsd_err_t code,
const ocsd_trc_index_t idx,
const uint8_t chan_id,
const std::string &msg);
74 void setMessage(
const std::string &msg) { m_err_message = msg; };
75 const std::string &
getMessage()
const {
return m_err_message; };
85 static void appendErrorDetails(std::string &errStr,
const ocsdError &error);
88 ocsd_err_t m_error_code;
89 ocsd_err_severity_t m_sev;
90 ocsd_trc_index_t m_idx;
93 std::string m_err_message;
108 return (*
this = &err);
114 #endif // ARM_OCSD_ERROR_H_INCLUDED
const ocsd_err_t getErrorCode() const
const uint8_t getErrorChanID() const
const ocsd_err_severity_t getErrorSeverity() const
const std::string & getMessage() const
const ocsd_trc_index_t getErrorIndex() const
static const std::string getErrorString(const ocsdError &error)
ocsdError & operator=(const ocsdError *p_err)
void setMessage(const std::string &msg)