semf
error.cpp
Go to the documentation of this file.
1
11
12namespace semf
13{
14Error::Error(uint32_t classId, uint8_t errorCode)
15: m_classId{classId},
16 m_errorCode{errorCode}
17{
18}
19
21{
22 return m_classId > ClassID::SectionHardwareBegin && m_classId < ClassID::SectionHardwareEnd;
23}
24
25uint32_t Error::classId() const
26{
27 return m_classId;
28}
29
30uint8_t Error::errorCode() const
31{
32 return m_errorCode;
33}
34} // namespace semf
uint8_t errorCode() const
Returns the error code from the error.
Definition: error.cpp:30
uint32_t classId() const
Returns the class id from the error.
Definition: error.cpp:25
bool isHardwareError() const
Checks if the error got submitted by a class from the semf-HAL.
Definition: error.cpp:20
Error(uint32_t classId, uint8_t errorCode)
Constructor.
Definition: error.cpp:14