BadMediaException
InvalidCompressionException
InvalidJsonException
MissingFieldException
PushException
UnknownErrorException
UnsupportedWidgetException
DID THIS ARTICLE SOLVE YOUR ISSUE?
Let us know so we can improve!
Let us know so we can improve!
com.salesforce.marketingcloud.pushmodels.exceptions
Push Models Module v1.0.2
Thrown when a required field is missing from push notification JSON.
1kotlin.Any
2 └── com.salesforce.marketingcloud.pushmodels.exceptions.PushException
3 └── com.salesforce.marketingcloud.pushmodels.exceptions.MissingFieldException1class MissingFieldException(fieldName: String) : PushException1constructor(fieldName: String)Creates a new MissingFieldException for a required field that was not found in the push notification data.
Parameters:
fieldName: String - The name of the missing required fieldThis exception is part of the Salesforce Marketing Cloud Unified SDK and is used specifically for handling errors when parsing push notification data that lacks required fields. It extends PushException to provide specific error handling for missing field scenarios in push notification processing.