PushNotificationsError
public enum PushNotificationsError : LocalizedError
extension PushNotificationsError: Equatable
Error thrown by PushNotifications.
-
The
instanceId
cannot be an empty String.Declaration
Swift
case instanceIdCannotBeAnEmptyString
-
The
interests
array cannot be empty.Declaration
Swift
case interestsArrayCannotBeEmpty
-
The
interests
array contains at least one or more invalid interests.- maxCharacters: The maximum number of characters allowed.
Declaration
Swift
case interestsArrayContainsAnInvalidInterest(maxCharacters: UInt)
-
The
interests
array exceeded the number of maximum interests allowed.- maxInterests: The maximum number of interests allowed.
Declaration
Swift
case interestsArrayContainsTooManyInterests(maxInterests: UInt)
-
An internal error occured.
Some internal operation of the library has thrown an error. The reason for the failure can be inspected via the
localizedDescription
property of theerror
parameter.Declaration
Swift
case internalError(_: Error)
-
The
secretKey
cannot be an empty String.Declaration
Swift
case secretKeyCannotBeAnEmptyString
-
The
users
array cannot be empty.Declaration
Swift
case usersArrayCannotBeEmpty
-
The
users
array cannot contain any empty Strings.Declaration
Swift
case usersArrayCannotContainEmptyString
-
The
users
array contains at least one or more invalid users.- maxCharacters: The maximum number of characters allowed.
Declaration
Swift
case usersArrayContainsAnInvalidUser(maxCharacters: UInt)
-
The
users
array exceeded the number of maximum interests allowed.- maxUsers: The maximum number of interests allowed.
Declaration
Swift
case usersArrayContainsTooManyUsers(maxUsers: UInt)
-
The
userId
cannot be an empty String.Declaration
Swift
case userIdCannotBeAnEmptyString
-
The
userId
is invalid (i.e. it is too many characters).- maxCharacters: The maximum number of characters allowed.
Declaration
Swift
case userIdInvalid(maxCharacters: UInt)
-
Declaration
Swift
public var errorDescription: String? { get }
-
Declaration
Swift
public static func == (lhs: PushNotificationsError, rhs: PushNotificationsError) -> Bool