PushException.ErrorCode
DID THIS ARTICLE SOLVE YOUR ISSUE?
Let us know so we can improve!
Let us know so we can improve!
An enumeration class representing error codes for push-related exceptions in the Salesforce Marketing Cloud Unified SDK.
Module: Push Models Module v1.0.2
Package: com.salesforce.marketingcloud.pushmodels.exceptions
Parent Class: PushException
Type: Enum class extending Enum<PushException.ErrorCode>
The ErrorCode enum defines the following error types:
| Enum Value | Description |
|---|---|
UNKNOWN_ERROR | Represents an unspecified or unknown error condition |
INVALID_JSON | Indicates the JSON data is malformed or invalid |
INVALID_COMPRESSION | Indicates issues with data compression format |
MISSING_FIELD | Indicates a required field is absent from the data |
UNSUPPORTED_TYPE | Indicates an unsupported data type was encountered |
BAD_MEDIA | Indicates media content is invalid or corrupted |
1val entries: EnumEntries<PushException.ErrorCode>Returns an immutable list representation of all enum entries in declaration order.
1fun valueOf(value: String): PushException.ErrorCodeReturns the enum constant matching the specified name.
Parameters:
value: String - The name of the enum constant to retrieveReturns: The corresponding ErrorCode enum constant
Note: The string must exactly match an identifier used to declare an enum constant. Extraneous whitespace is not permitted.
1fun values(): Array<PushException.ErrorCode>Returns an array containing all enum constants in declaration order.
Returns: Array of all ErrorCode enum constants