treat malformed response as ioexception
This commit is contained in:
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);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue