InvalidJsonException

Package 

com.salesforce.marketingcloud.pushmodels.exceptions

Description 

An exception class thrown when push notification JSON has invalid structure or syntax.

Class Declaration 

1class InvalidJsonException(message: String) : PushException

Inheritance 

  • Extends: PushException

Constructors 

InvalidJsonException 

1constructor(message: String)

Creates a new InvalidJsonException with the specified error message.

Parameters:

  • message: String - The detail message describing the invalid JSON error