mobile/android/base/background/fxa/FxAccountRemoteError.java

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/mobile/android/base/background/fxa/FxAccountRemoteError.java	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,31 @@
     1.4 +/* This Source Code Form is subject to the terms of the Mozilla Public
     1.5 + * License, v. 2.0. If a copy of the MPL was not distributed with this
     1.6 + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
     1.7 +
     1.8 +package org.mozilla.gecko.background.fxa;
     1.9 +
    1.10 +public interface FxAccountRemoteError {
    1.11 +  public static final int ATTEMPT_TO_CREATE_AN_ACCOUNT_THAT_ALREADY_EXISTS = 101;
    1.12 +  public static final int ATTEMPT_TO_ACCESS_AN_ACCOUNT_THAT_DOES_NOT_EXIST = 102;
    1.13 +  public static final int INCORRECT_PASSWORD = 103;
    1.14 +  public static final int ATTEMPT_TO_OPERATE_ON_AN_UNVERIFIED_ACCOUNT = 104;
    1.15 +  public static final int INVALID_VERIFICATION_CODE = 105;
    1.16 +  public static final int REQUEST_BODY_WAS_NOT_VALID_JSON = 106;
    1.17 +  public static final int REQUEST_BODY_CONTAINS_INVALID_PARAMETERS = 107;
    1.18 +  public static final int REQUEST_BODY_MISSING_REQUIRED_PARAMETERS = 108;
    1.19 +  public static final int INVALID_REQUEST_SIGNATURE = 109;
    1.20 +  public static final int INVALID_AUTHENTICATION_TOKEN = 110;
    1.21 +  public static final int INVALID_AUTHENTICATION_TIMESTAMP = 111;
    1.22 +  public static final int INVALID_AUTHENTICATION_NONCE = 115;
    1.23 +  public static final int CONTENT_LENGTH_HEADER_WAS_NOT_PROVIDED = 112;
    1.24 +  public static final int REQUEST_BODY_TOO_LARGE = 113;
    1.25 +  public static final int CLIENT_HAS_SENT_TOO_MANY_REQUESTS = 114;
    1.26 +  public static final int INVALID_NONCE_IN_REQUEST_SIGNATURE = 115;
    1.27 +  public static final int ENDPOINT_IS_NO_LONGER_SUPPORTED = 116;
    1.28 +  public static final int INCORRECT_LOGIN_METHOD_FOR_THIS_ACCOUNT = 117;
    1.29 +  public static final int INCORRECT_KEY_RETRIEVAL_METHOD_FOR_THIS_ACCOUNT = 118;
    1.30 +  public static final int INCORRECT_API_VERSION_FOR_THIS_ACCOUNT = 119;
    1.31 +  public static final int INCORRECT_EMAIL_CASE = 120;
    1.32 +  public static final int SERVICE_TEMPORARILY_UNAVAILABLE_DUE_TO_HIGH_LOAD = 201;
    1.33 +  public static final int UNKNOWN_ERROR = 999;
    1.34 +}

mercurial