Communication: Add new app errors

ks-refactor-docs
Bryant Jones 2024-08-29 11:36:47 -04:00
parent 7f30179cc4
commit 99183a89f9
2 changed files with 9 additions and 0 deletions

View File

@ -130,6 +130,12 @@ std::string AppErrorMessage::getAppErrorString() {
return "Device rebooted to recover from an unexpected error condition"; return "Device rebooted to recover from an unexpected error condition";
case AppErrorType::AppErrorPortKeyMistmatch: case AppErrorType::AppErrorPortKeyMistmatch:
return std::string(netIDString) + ": Mismatch between key in manager and stored key"; 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: case AppErrorType::AppErrorErrorBufferOverflow:
return "Device error buffer overflow"; return "Device error buffer overflow";
case AppErrorType::AppNoError: case AppErrorType::AppNoError:

View File

@ -57,6 +57,9 @@ enum class AppErrorType : uint16_t {
AppErrorInvalidSetting = 42, AppErrorInvalidSetting = 42,
AppErrorSystemFailureRequestedReset = 43, AppErrorSystemFailureRequestedReset = 43,
AppErrorPortKeyMistmatch = 45, AppErrorPortKeyMistmatch = 45,
AppErrorBusFailure = 46,
AppErrorTapOverflow = 47,
AppErrorEthTxNoLink = 48,
AppErrorErrorBufferOverflow = 254, AppErrorErrorBufferOverflow = 254,
AppNoError = 255 AppNoError = 255
}; };