Let Constructor throw Exception instead of method
This commit is contained in:
parent
4839c12340
commit
17206bfb8c
@ -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();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user