treat malformed response as ioexception

This commit is contained in:
Michele Balistreri 2023-02-22 12:16:44 +01:00
parent ccb353ca82
commit 0d27ac445c
No known key found for this signature in database
GPG Key ID: E9567DA33A4F791A
1 changed files with 2 additions and 0 deletions

View File

@ -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);
}
}