AboundError

@objc
public final class AboundError : NSObject, Error, CustomNSError, LocalizedError

The type for errors returned by the Abound SDK.

See AboundError.Code for specific error types.

  • The domain specific error code.

    See more

    Declaration

    Swift

    @objc
    public enum Code : Int
  • The domain of the error, i.e. “com.aboundlabs”

    Declaration

    Swift

    @objc
    public static var errorDomain: String { get }
  • The error code within the given domain.

    Declaration

    Swift

    @objc
    public var errorCode: Int { get }
  • The user-info dictionary.

    Declaration

    Swift

    @objc
    public var errorUserInfo: [String : Any] { get }
  • A localized message describing what error occurred.

    Declaration

    Swift

    @objc
    public var errorDescription: String? { get }
  • A localized message describing the reason for the failure.

    Declaration

    Swift

    @objc
    public var failureReason: String? { get }
  • A localized message providing “help” text if the user requests help.

    Declaration

    Swift

    @objc
    public var helpAnchor: String? { get }
  • A localized message describing how one might recover from the failure.

    Declaration

    Swift

    @objc
    public var recoverySuggestion: String? { get }