Communication: Add new app errors
parent
7f30179cc4
commit
99183a89f9
|
|
@ -130,6 +130,12 @@ std::string AppErrorMessage::getAppErrorString() {
|
|||
return "Device rebooted to recover from an unexpected error condition";
|
||||
case AppErrorType::AppErrorPortKeyMistmatch:
|
||||
return std::string(netIDString) + ": Mismatch between key in manager and stored key";
|
||||
case AppErrorType::AppErrorBusFailure:
|
||||
return std::string(netIDString) + ": Bus failure";
|
||||
case AppErrorType::AppErrorTapOverflow:
|
||||
return std::string(netIDString) + ": Tap overflow";
|
||||
case AppErrorType::AppErrorEthTxNoLink:
|
||||
return std::string(netIDString) + ": Attempted Ethernet transmit without link";
|
||||
case AppErrorType::AppErrorErrorBufferOverflow:
|
||||
return "Device error buffer overflow";
|
||||
case AppErrorType::AppNoError:
|
||||
|
|
|
|||
|
|
@ -57,6 +57,9 @@ enum class AppErrorType : uint16_t {
|
|||
AppErrorInvalidSetting = 42,
|
||||
AppErrorSystemFailureRequestedReset = 43,
|
||||
AppErrorPortKeyMistmatch = 45,
|
||||
AppErrorBusFailure = 46,
|
||||
AppErrorTapOverflow = 47,
|
||||
AppErrorEthTxNoLink = 48,
|
||||
AppErrorErrorBufferOverflow = 254,
|
||||
AppNoError = 255
|
||||
};
|
||||
|
|
|
|||
Loading…
Reference in New Issue