diff options
author | 2024-10-30 21:45:00 +0000 | |
---|---|---|
committer | 2024-10-31 20:57:53 +0000 | |
commit | e97cf01874df6b8b1177e1cc8d062327614939ff (patch) | |
tree | fb30618f50eab48b16e1ac15a8e1fb0d526db048 /libs/appfunctions/java | |
parent | 67167c3b4524e709fda6baa67a98612a0f4d2cad (diff) |
Add a dedicated error code for missing function ID
Flag: android.app.appfunctions.flags.enable_app_function_manager
Test: CTS
Bug: 375121362
Change-Id: I917df5c09090e549dade1c666e3d2ccaa8e8ac92
Diffstat (limited to 'libs/appfunctions/java')
-rw-r--r-- | libs/appfunctions/java/com/google/android/appfunctions/sidecar/ExecuteAppFunctionResponse.java | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/libs/appfunctions/java/com/google/android/appfunctions/sidecar/ExecuteAppFunctionResponse.java b/libs/appfunctions/java/com/google/android/appfunctions/sidecar/ExecuteAppFunctionResponse.java index bf4ab45ed939..4e88fb025a9d 100644 --- a/libs/appfunctions/java/com/google/android/appfunctions/sidecar/ExecuteAppFunctionResponse.java +++ b/libs/appfunctions/java/com/google/android/appfunctions/sidecar/ExecuteAppFunctionResponse.java @@ -76,18 +76,23 @@ public final class ExecuteAppFunctionResponse { /** * The caller tried to execute a disabled app function. * - * <p>This error is in the request error category. - * * <p>This error is in the {@link #ERROR_CATEGORY_REQUEST_ERROR} category. */ public static final int RESULT_DISABLED = 1002; /** + * The caller tried to execute a function that does not exist. + * + * <p>This error is in the {@link #ERROR_CATEGORY_REQUEST_ERROR} category. + */ + public static final int RESULT_FUNCTION_NOT_FOUND = 1003; + + /** * An internal unexpected error coming from the system. * * <p>This error is in the {@link #ERROR_CATEGORY_SYSTEM} category. */ - public static final int RESULT_INTERNAL_ERROR = 2000; + public static final int RESULT_SYSTEM_ERROR = 2000; /** * The operation was cancelled. Use this error code to report that a cancellation is done after @@ -327,7 +332,8 @@ public final class ExecuteAppFunctionResponse { RESULT_OK, RESULT_DENIED, RESULT_APP_UNKNOWN_ERROR, - RESULT_INTERNAL_ERROR, + RESULT_SYSTEM_ERROR, + RESULT_FUNCTION_NOT_FOUND, RESULT_INVALID_ARGUMENT, RESULT_DISABLED, RESULT_CANCELLED |