ErrorCode
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 |
Returns an immutable list representation of all enum entries in declaration order.
Returns the enum constant matching the specified name.
Parameters:
value: String- The name of the enum constant to retrieve
Returns: The corresponding ErrorCode enum constant
Note: The string must exactly match an identifier used to declare an enum constant. Extraneous whitespace is not permitted.
Returns an array containing all enum constants in declaration order.
Returns: Array of all ErrorCode enum constants