UnbluClientErrorType

enum UnbluClientErrorType

Errors which can occur during interaction with the UnbluClient.

  • General internal error of the UnbluClient

    Declaration

    Swift

    case internalError
  • Error thrown if the unblu server could not be reached

    Declaration

    Swift

    case serverUnreachable
  • Error given if the mobile sdk module is disabled in the server configuration

    Declaration

    Swift

    case disabled
  • Internal error which prevents the mobile SDK to communicate with the unblu server

    Declaration

    Swift

    case unknownFunction
  • Internal error which prevents the mobile SDK to communicate with the unblu server

    Declaration

    Swift

    case invalidFunctionArgs
  • Occurs if the api key is missing in the context of the communicate with the unblu server

    Declaration

    Swift

    case missingApiKey
  • Occurs if the mobile SDK version is not compatible with the version of the unblu server

    Declaration

    Swift

    case unsupportedVersion
  • If the url which is used to connect to the unblu server is invalid

    Declaration

    Swift

    case invalidUrl
  • Thrown if there is an authentication issue while communicating with the unblu server

    Declaration

    Swift

    case authentication
  • Thrown if there is an authorization issue while communicating with the unblu server

    Declaration

    Swift

    case authorization
  • Thrown if there was a business error during execution

    Declaration

    Swift

    case execution
  • Creates a new instance with the specified raw value.

    If there is no value of the type that corresponds with the specified raw value, this initializer returns nil. For example:

    enum PaperSize: String {
        case A4, A5, Letter, Legal
    }
    
    print(PaperSize(rawValue: "Legal"))
    // Prints "Optional(PaperSize.Legal)"
    
    print(PaperSize(rawValue: "Tabloid"))
    // Prints "nil"
    

    Declaration

    Swift

    init?(rawValue: String)

    Parameters

    rawValue

    The raw value to use for the new instance.