Upgraded the severity of some warnings to errors and cleaned up internal API error adding

This commit is contained in:
EricLiu2000
2019-06-21 15:08:08 -04:00
parent cb6f88c6bb
commit f9d88b4743
2 changed files with 10 additions and 42 deletions
+7 -6
View File
@@ -216,12 +216,7 @@ APIError::Severity APIError::SeverityForType(ErrorType type) {
switch(type) {
// API Warnings
case OutputTruncated:
case DeviceCurrentlyOpen:
case DeviceCurrentlyClosed:
case DeviceCurrentlyOnline:
case DeviceCurrentlyOffline:
case DeviceCurrentlyPolling:
case DeviceNotCurrentlyPolling:
// Device Warnings
case PollingMessageOverflow:
case DeviceFirmwareOutOfDate:
@@ -240,6 +235,12 @@ APIError::Severity APIError::SeverityForType(ErrorType type) {
case MessageMaxLengthExceeded:
// Device Errors
case DeviceCurrentlyOpen:
case DeviceCurrentlyClosed:
case DeviceCurrentlyOnline:
case DeviceCurrentlyOffline:
case DeviceCurrentlyPolling:
case DeviceNotCurrentlyPolling:
case NoSerialNumber:
case IncorrectSerialNumber:
case SettingsReadError: