IBMMobileKitError

public enum IBMMobileKitError : Error

Describes the error cases.

  • The JSON data supplied from ISAM is invalid or not in the correct format.

    Declaration

    Swift

    case invalidDataFromServer
  • The data is incomplete and can not be parsed.

    Declaration

    Swift

    case unableToParseData(missing: String)

    Parameters

    missing

    The element not represented in the JSON data.

  • The HTTP method is invalid for this operation.

    Declaration

    Swift

    case invalidHTTPMethod
  • The HTTP header is invalid for this operation.

    Declaration

    Swift

    case invalidHTTPHeader(name: String)
  • Failed to create a valid URL.

    Declaration

    Swift

    case invalidURL(url: String)

    Parameters

    url

    The invlaid URL.

  • Underlying networking error.

    Declaration

    Swift

    case underlyingError(error: Error)

    Parameters

    error

    The Error that caused the exception.

  • Server error.

    Declaration

    Swift

    case serverError(message: String)

    Parameters

    message

    The error message that caused the exception.

  • The HTTP response code is 401 or ISAM has returned Content-Type as HTML.

    Declaration

    Swift

    case unauthenticated
  • The transaction was not found.

    Declaration

    Swift

    case transactionNotFound(id: String)

    Parameters

    id

    The transaction identifier used to search on.

  • The challenge is unknown.

    Declaration

    Swift

    case unknownChallenge
  • Retrieve the localized description for this error.

    Declaration

    Swift

    public var errorDescription: String? { get }