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