PushNotificationsError
public enum PushNotificationsError : LocalizedError
extension PushNotificationsError: Equatable
Error thrown by PushNotifications.
-
The
instanceIdcannot be an empty String.Declaration
Swift
case instanceIdCannotBeAnEmptyString -
The
interestsarray cannot be empty.Declaration
Swift
case interestsArrayCannotBeEmpty -
The
interestsarray contains at least one or more invalid interests.- maxCharacters: The maximum number of characters allowed.
Declaration
Swift
case interestsArrayContainsAnInvalidInterest(maxCharacters: UInt) -
The
interestsarray 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
localizedDescriptionproperty of theerrorparameter.Declaration
Swift
case internalError(_: Error) -
The
secretKeycannot be an empty String.Declaration
Swift
case secretKeyCannotBeAnEmptyString -
The
usersarray cannot be empty.Declaration
Swift
case usersArrayCannotBeEmpty -
The
usersarray cannot contain any empty Strings.Declaration
Swift
case usersArrayCannotContainEmptyString -
The
usersarray contains at least one or more invalid users.- maxCharacters: The maximum number of characters allowed.
Declaration
Swift
case usersArrayContainsAnInvalidUser(maxCharacters: UInt) -
The
usersarray exceeded the number of maximum interests allowed.- maxUsers: The maximum number of interests allowed.
Declaration
Swift
case usersArrayContainsTooManyUsers(maxUsers: UInt) -
The
userIdcannot be an empty String.Declaration
Swift
case userIdCannotBeAnEmptyString -
The
userIdis 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
View on GitHub
PushNotificationsError Enumeration Reference