SAPcpmsRemoteNotificationError
public enum SAPcpmsRemoteNotificationError : Error
extension SAPcpmsRemoteNotificationError: SAPError
Enum which covers all Errors occuring in the RemoteNotificationClient.
-
Occurs if the deviceToken parameter is empty.
Declaration
Swift
case emptyDeviceToken
-
Occurs if network communication failed.
Declaration
Swift
case networkCommunicationFailed(error: Error?, httpStatuscode: Int?, response: String?)
-
no valid notification ID found in the given parameter
Declaration
Swift
case notificationIDMissing
-
feedback url has not been set
Declaration
Swift
case feedbackUrlMissing
-
invalid arguments
Declaration
Swift
case invalidArguments(error: Error?)
-
Status code of response is not the expected.
Declaration
Swift
case invalidHTTPStatus(statusCode: Int)
-
Occurs if the topic is longer than 64 characters or 32 topics are subscribed.
Declaration
Swift
case characterLimitReachedOrMaxTopicsSubscribed
-
Occurs if the device ID and user are not registered for push.
Declaration
Swift
case deviceandUserNotRegisteredforPush
-
The given value does not conform to the accepted type (parse issue: missing a necessary key or the type is invalid).
Declaration
Swift
case malformed(type: MalformedType, description: String)
-
The malformed error could have different type
See moreDeclaration
Swift
public enum MalformedType
-
Message describing the error
Declaration
Swift
public var description: String { get }
-
A localized message describing what error occurred.
Declaration
Swift
public var errorDescription: String? { get }
-
A textual representation of this instance, suitable for debugging.
Declaration
Swift
public var debugDescription: String { get }
-
A localized message describing the reason for the failure.
Declaration
Swift
public var failureReason: String? { get }