MissingFieldException

Package 

com.salesforce.marketingcloud.pushmodels.exceptions

Module 

Push Models Module v1.0.2

Description 

Thrown when a required field is missing from push notification JSON.

Inheritance Hierarchy 

1kotlin.Any
2  └── com.salesforce.marketingcloud.pushmodels.exceptions.PushException
3        └── com.salesforce.marketingcloud.pushmodels.exceptions.MissingFieldException

Class Declaration 

1class MissingFieldException(fieldName: String) : PushException

Platform 

  • Target: androidJvm
  • SDK Version: 11.0.0

Constructors 

MissingFieldException 

1constructor(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 field

Usage 

This 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.

Source 

https://salesforce-marketingcloud.github.io/MarketingCloudSDK-Android/javadocs/SFMCSdk/11.0/pushmodelsmodule/com.salesforce.marketingcloud.pushmodels.exceptions/-missing-field-exception/index.html