ErrorCode

Overview 

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>


Enum Values 

The ErrorCode enum defines the following error types:

Enum ValueDescription
UNKNOWN_ERRORRepresents an unspecified or unknown error condition
INVALID_JSONIndicates the JSON data is malformed or invalid
INVALID_COMPRESSIONIndicates issues with data compression format
MISSING_FIELDIndicates a required field is absent from the data
UNSUPPORTED_TYPEIndicates an unsupported data type was encountered
BAD_MEDIAIndicates media content is invalid or corrupted

Properties 

entries 

1val entries: EnumEntries<PushException.ErrorCode>

Returns an immutable list representation of all enum entries in declaration order.


Functions 

valueOf 

1fun valueOf(value: String): PushException.ErrorCode

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.


values 

1fun values(): Array<PushException.ErrorCode>

Returns an array containing all enum constants in declaration order.

Returns: Array of all ErrorCode enum constants