Let Constructor throw Exception instead of method

This commit is contained in:
glax 2024-02-12 02:05:13 +01:00
parent 4839c12340
commit 17206bfb8c

View File

@ -26,7 +26,7 @@ public class ApiJsonConverter : JsonConverter
case DeviceApi.PiShockHttp:
return jo.ToObject<PiShockHttp>()!;
case DeviceApi.PiShockSerial:
throw new NotImplementedException();
return jo.ToObject<PiShockSerial>()!;
default:
throw new Exception();
}