aboutsummaryrefslogtreecommitdiffstats
path: root/OpenKeychain/src/main/java/org/sufficientlysecure/keychain/securitytoken/CardException.java
diff options
context:
space:
mode:
authorDominik Schürmann <dominik@dominikschuermann.de>2016-04-15 18:19:32 +0200
committerDominik Schürmann <dominik@dominikschuermann.de>2016-04-15 18:19:32 +0200
commit6126e3d9ae12006e28a0e5cb5810b33573c0c31c (patch)
treec55092c8170a95f42f48a57d1ff6958fd00e7f0a /OpenKeychain/src/main/java/org/sufficientlysecure/keychain/securitytoken/CardException.java
parente08ae317970d2b46175eb7f72500061642e0b9b2 (diff)
parent28a352a288701a6419602e4c2fff3d5da7172cc0 (diff)
downloadopen-keychain-6126e3d9ae12006e28a0e5cb5810b33573c0c31c.tar.gz
open-keychain-6126e3d9ae12006e28a0e5cb5810b33573c0c31c.tar.bz2
open-keychain-6126e3d9ae12006e28a0e5cb5810b33573c0c31c.zip
Merge pull request #1824 from nmikhailov/otg2
[WIP] USB OTG Support for Yubikey
Diffstat (limited to 'OpenKeychain/src/main/java/org/sufficientlysecure/keychain/securitytoken/CardException.java')
-rw-r--r--OpenKeychain/src/main/java/org/sufficientlysecure/keychain/securitytoken/CardException.java34
1 files changed, 34 insertions, 0 deletions
diff --git a/OpenKeychain/src/main/java/org/sufficientlysecure/keychain/securitytoken/CardException.java b/OpenKeychain/src/main/java/org/sufficientlysecure/keychain/securitytoken/CardException.java
new file mode 100644
index 000000000..905deca90
--- /dev/null
+++ b/OpenKeychain/src/main/java/org/sufficientlysecure/keychain/securitytoken/CardException.java
@@ -0,0 +1,34 @@
+/*
+ * Copyright (C) 2016 Nikita Mikhailov <nikita.s.mikhailov@gmail.com>
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ */
+
+package org.sufficientlysecure.keychain.securitytoken;
+
+import java.io.IOException;
+
+public class CardException extends IOException {
+ private short mResponseCode;
+
+ public CardException(String detailMessage, short responseCode) {
+ super(detailMessage);
+ mResponseCode = responseCode;
+ }
+
+ public short getResponseCode() {
+ return mResponseCode;
+ }
+
+} \ No newline at end of file