Better error handling

This commit is contained in:
Dominik Schürmann
2013-09-16 13:00:47 +02:00
parent 4e23cf2edc
commit 363358d30b
7 changed files with 116 additions and 68 deletions

View File

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