mirror of
https://github.com/intrepidcs/libicsneo.git
synced 2026-08-05 09:28:40 +02:00
Communication: Add new app errors
This commit is contained in:
@@ -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:
|
||||||
|
|||||||
@@ -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
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user