Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add new error codes for AdobeError #713

Merged
merged 1 commit into from
Sep 25, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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