BittiqClientError

public enum BittiqClientError : Equatable

An error that occurred client-side.

  • The specified URL was malformed.

    Declaration

    Swift

    case urlMalformed
  • The SDK was already initialized. Please use BittiqSDK.instance instead.

    Declaration

    Swift

    case alreadyInitialized
  • Failed to JSON-encode the specified body parameters. Please make sure that all parameters are JSON-encodable.

    Declaration

    Swift

    case parameterEncodingFailed
  • Failed to JSON-decode the response body. Please contact support if the problem persists. See the reason value for more info.

    Declaration

    Swift

    case responseDecodingFailed(reason: String)
  • Failed to convert response model to domain model. Please contact support if the problem persists. See the reason value for more info.

    Declaration

    Swift

    case domainModelConversionFailed(reason: String)
  • Failed to store the acquired tokens in the keychain. Please contact support if the problem persists.

    Declaration

    Swift

    case persistingTokensFailed
  • The given input didn’t pass validation. Please see the parameter and error values for more info.

    Declaration

    Swift

    case inputValidationError(parameter: String, error: String)
  • The API request requires an access token for authentication, but no tokens could be resolved. Make sure that the user is authenticated and TokenResolver.resolve(_:) provides a valid Tokens object.

    Declaration

    Swift

    case tokensMissingError
  • Some unspecified internal error occurred. Please contact support if the problem persists.

    Declaration

    Swift

    case internalError(code: Int)
  • A non-localized error description.

    Declaration

    Swift

    public var errorDescription: String? { get }