DKError

public enum DKError : Error

Errors associated with points of failure in the SDK

  • The pagination object reached the end of the object list

    Declaration

    Swift

    case paginationDidReachEnd
  • The pagination object is currently in the process of getting a new page of objects

    Declaration

    Swift

    case paginationIsFetchingPage
  • The incoming JSON is in an unexpected format

    Declaration

    Swift

    case unableToSerializeJSON
  • An error occurred while trying to create an object from the network response

    Declaration

    Swift

    case unableToSerializeItem
  • An API token is missing from the DKRouter.user property

    Declaration

    Swift

    case missingAPIToken
  • A user object is needed but not present

    Declaration

    Swift

    case missingUser
  • A user token is needed but not present

    Declaration

    Swift

    case missingUserToken
  • Request was deallocated from memory before a response could be returned

    Declaration

    Swift

    case requestIsNil
  • Request found itself deallocated

    Declaration

    Swift

    case deallocated
  • User explicitly cancelled the operation

    Declaration

    Swift

    case userCancelled