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:
|
case DeviceApi.PiShockHttp:
|
||||||
return jo.ToObject<PiShockHttp>()!;
|
return jo.ToObject<PiShockHttp>()!;
|
||||||
case DeviceApi.PiShockSerial:
|
case DeviceApi.PiShockSerial:
|
||||||
throw new NotImplementedException();
|
return jo.ToObject<PiShockSerial>()!;
|
||||||
default:
|
default:
|
||||||
throw new Exception();
|
throw new Exception();
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user