Skip to content

Commit

Permalink
Merge pull request #713 from ishita-gambhir-adobe/adobeErrorBranch
Browse files Browse the repository at this point in the history
add new error codes for AdobeError
  • Loading branch information
praveek authored Sep 25, 2024
2 parents 6abb3b4 + 6a742cc commit 037baca
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
4 changes: 4 additions & 0 deletions code/core/api/core.api
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@ public class com/adobe/marketing/mobile/AdobeError : java/io/Serializable {
public static final field CALLBACK_NULL Lcom/adobe/marketing/mobile/AdobeError;
public static final field CALLBACK_TIMEOUT Lcom/adobe/marketing/mobile/AdobeError;
public static final field EXTENSION_NOT_INITIALIZED Lcom/adobe/marketing/mobile/AdobeError;
public static final field INVALID_REQUEST Lcom/adobe/marketing/mobile/AdobeError;
public static final field INVALID_RESPONSE Lcom/adobe/marketing/mobile/AdobeError;
public static final field NETWORK_ERROR Lcom/adobe/marketing/mobile/AdobeError;
public static final field SERVER_ERROR Lcom/adobe/marketing/mobile/AdobeError;
public static final field UNEXPECTED_ERROR Lcom/adobe/marketing/mobile/AdobeError;
protected fun <init> (Ljava/lang/String;I)V
public fun getErrorCode ()I
Expand Down
12 changes: 12 additions & 0 deletions code/core/src/main/java/com/adobe/marketing/mobile/AdobeError.java
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,18 @@ public class AdobeError implements Serializable {
/** when a callback is null. */
public static final AdobeError CALLBACK_NULL = new AdobeError("general.callback.null", 2);

/** when a server error happens. */
public static final AdobeError SERVER_ERROR = new AdobeError("general.server.error", 4);

/** when a network error happens. */
public static final AdobeError NETWORK_ERROR = new AdobeError("general.network.error", 5);

/** when an invalid request is made. */
public static final AdobeError INVALID_REQUEST = new AdobeError("general.request.invalid", 6);

/** when an invalid response is received. */
public static final AdobeError INVALID_RESPONSE = new AdobeError("general.response.invalid", 7);

/** when a extension is not initialized. */
public static final AdobeError EXTENSION_NOT_INITIALIZED =
new AdobeError("general.extension.not.initialized", 11);
Expand Down

0 comments on commit 037baca

Please sign in to comment.