Status

public class Status : NSObject
extension Status: LocalizedError

Status class

Class holding all possible statuses and their descriptions the AB Circle SmartCard I/O Framework can return. This class is used as base for all classes in the AB Circle SmartCard I/O Framework that have methods returning or throwing error statuses.

Properties and methods to hold the last status code and its description are included, as well as getting the description of an entered statuscode.

  • Status code enumerator; holds all possible statuses returned or thrown by methods in this framework

    See more

    Declaration

    Swift

    public enum StatusCode : Error, CaseNameable
  • Returns the last statuscode of the current class (see enum StatusCode for possible values)

    Declaration

    Swift

    internal(set) public var lastStatusCode: StatusCode { get set }
  • Returns the description of the last statuscode of the current class

    Declaration

    Swift

    public var lastStatusDescription: String { get }
  • Returns the description of the entered statuscode

    Declaration

    Swift

    public func statusDescription(status: StatusCode) -> String

    Parameters

    status

    Statuscode (see enum StatusCode for possible values)

    Return Value

    String holding the description of the entered statuscode

  • Returns the description of the last statuscode of the current class

    Declaration

    Swift

    public var errorDescription: String? { get }