From 363358d30b54ad70c92df59b9496dcdda5becc79 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dominik=20Sch=C3=BCrmann?= Date: Mon, 16 Sep 2013 13:00:47 +0200 Subject: Better error handling --- .../src/org/openintents/openpgp/OpenPgpError.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'OpenPGP-Keychain-API-Demo') diff --git a/OpenPGP-Keychain-API-Demo/src/org/openintents/openpgp/OpenPgpError.java b/OpenPGP-Keychain-API-Demo/src/org/openintents/openpgp/OpenPgpError.java index 66f168d89..f108d3169 100644 --- a/OpenPGP-Keychain-API-Demo/src/org/openintents/openpgp/OpenPgpError.java +++ b/OpenPGP-Keychain-API-Demo/src/org/openintents/openpgp/OpenPgpError.java @@ -20,8 +20,10 @@ import android.os.Parcel; import android.os.Parcelable; public class OpenPgpError implements Parcelable { - public static final int ID_NO_OR_WRONG_PASSPHRASE = 1; - public static final int ID_NO_USER_IDS = 2; + public static final int GENERIC_ERROR = 0; + public static final int NO_OR_WRONG_PASSPHRASE = 1; + public static final int NO_USER_IDS = 2; + public static final int USER_INTERACTION_REQUIRED = 3; int errorId; String message; -- cgit v1.2.3