GoogleUserMessagingPlatform Framework Reference
Stay organized with collections
Save and categorize content based on your preferences.
enum UMPFormErrorCode : NSInteger {}
Error codes used when loading and showing forms.
-
Declaration
Swift
case `internal` = 5
Objective-C
UMPFormErrorCodeInternal = 5
-
Declaration
Swift
case alreadyUsed = 6
Objective-C
UMPFormErrorCodeAlreadyUsed = 6
-
Declaration
Swift
case unavailable = 7
Objective-C
UMPFormErrorCodeUnavailable = 7
-
< Loading a form timed out.
Declaration
Objective-C
UMPFormErrorCodeTimeout = 8
-
Declaration
Swift
case invalidViewController = 9
Objective-C
UMPFormErrorCodeInvalidViewController =
9
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License
, and code samples are licensed under the Apache 2.0 License
. For details, see the Google Developers Site Policies
. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-08-20 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-20 UTC."],[[["\u003cp\u003e\u003ccode\u003eUMPFormErrorCode\u003c/code\u003e is an enumeration of error codes used when loading and showing forms.\u003c/p\u003e\n"],["\u003cp\u003eThese error codes indicate issues such as internal errors, forms already used, unavailability, loading timeouts, and potentially invalid view controllers.\u003c/p\u003e\n"],["\u003cp\u003eEach error code is represented by a specific integer value, accessible in both Swift and Objective-C.\u003c/p\u003e\n"],["\u003cp\u003eDevelopers can use these error codes to handle form-related issues and provide appropriate feedback to users.\u003c/p\u003e\n"]]],["The core content details `UMPFormErrorCode`, an enum with integer values that signal errors during form loading and display. The defined error codes include: `internal` (value 5) for internal issues, `alreadyUsed` (6) when a form has been used, `unavailable` (7) if the form is not accessible, `timeout` (8) for loading timeouts, and `invalidViewController` (9), which is undocumented. These codes are declared in both Swift and Objective-C.\n"],null,["# GoogleUserMessagingPlatform Framework Reference\n\nUMPFormErrorCode\n================\n\n enum UMPFormErrorCode : NSInteger {}\n\nError codes used when loading and showing forms.\n- `\n ``\n ``\n `\n\n ### [UMPFormErrorCodeInternal](#/c:@E@UMPFormErrorCode@UMPFormErrorCodeInternal)\n\n `\n ` \n \\\u003c Internal error. \n\n #### Declaration\n\n Swift \n\n case `internal` = 5\n\n Objective-C \n\n UMPFormErrorCodeInternal = 5\n\n- `\n ``\n ``\n `\n\n ### [UMPFormErrorCodeAlreadyUsed](#/c:@E@UMPFormErrorCode@UMPFormErrorCodeAlreadyUsed)\n\n `\n ` \n \\\u003c Form was already used. \n\n #### Declaration\n\n Swift \n\n case alreadyUsed = 6\n\n Objective-C \n\n UMPFormErrorCodeAlreadyUsed = 6\n\n- `\n ``\n ``\n `\n\n ### [UMPFormErrorCodeUnavailable](#/c:@E@UMPFormErrorCode@UMPFormErrorCodeUnavailable)\n\n `\n ` \n \\\u003c Form is unavailable. \n\n #### Declaration\n\n Swift \n\n case unavailable = 7\n\n Objective-C \n\n UMPFormErrorCodeUnavailable = 7\n\n- `\n ``\n ``\n `\n\n ### [UMPFormErrorCodeTimeout](#/c:@E@UMPFormErrorCode@UMPFormErrorCodeTimeout)\n\n `\n ` \n \\\u003c Loading a form timed out. \n\n #### Declaration\n\n Swift \n\n case timeout = 8\n\n Objective-C \n\n UMPFormErrorCodeTimeout = 8\n\n- `\n ``\n ``\n `\n\n ### [UMPFormErrorCodeInvalidViewController](#/c:@E@UMPFormErrorCode@UMPFormErrorCodeInvalidViewController)\n\n `\n ` \n Undocumented \n\n #### Declaration\n\n Swift \n\n case invalidViewController = 9\n\n Objective-C \n\n UMPFormErrorCodeInvalidViewController =\n 9"]]