treat malformed response as ioexception

This commit is contained in:
Michele Balistreri
2023-02-22 12:16:44 +01:00
parent ccb353ca82
commit 0d27ac445c
@@ -32,6 +32,8 @@ public class NFCCardChannel implements CardChannel {
return response;
} catch(SecurityException e) {
throw new IOException("Tag disconnected", e);
} catch(IllegalArgumentException e) {
throw new IOException("Malformed card response", e);
}
}