ADDataProviderError

public enum ADDataProviderError: Error

Defines the type of errors that can arise when working with a data provider that conforms to the ADDataProvider protocol.

  • The data provider is attempting to work with a datasource before it has been opened.

    Declaration

    Swift

    case dataSourceNotOpen
  • Failed to copy a writable version of the database source from the app’s bundle to the documents directory. message contains the details of the given failure.

    Declaration

    Swift

    case dataSourceCopyFailed(message: String)
  • Unable to open the data source from the given location or with the given name.

    Declaration

    Swift

    case dataSourceNotFound
  • The data provider was unable to open the given data source.

    Declaration

    Swift

    case unableToOpenDataSource
  • The data provider failed to delete the data source.

    Declaration

    Swift

    case failedToDeleteSource
  • The data provider does not have the requested table name on file. message contains the details of the given failure.

    Declaration

    Swift

    case tableNotFound(message: String)
  • The data provider was unable to prepare the SQL statement for execution while binding the passed set of parameters. message contains the details of the given failure.

    Declaration

    Swift

    case failedToPrepareSQL(message: String)
  • The number of parameters specified in the SQL statement did not match the number of parameters passed to the data provider.

    Declaration

    Swift

    case parameterCountMismatch
  • The data provider was unable to bind a given parameter to the SQL statement. message contains the details of the given failure.

    Declaration

    Swift

    case unableToBindParameter(message: String)
  • The data provider was unable to create the requested table in the data source. message contains the details of the given failure.

    Declaration

    Swift

    case failedToCreateTable(message: String)
  • The data provider was unable to execute the given SQL statement. message contains the details of the given failure.

    Declaration

    Swift

    case failedToExecuteSQL(message: String)
  • The data provider was unable to update the given table schema to the new version. message contains the details of the given failure.

    Declaration

    Swift

    case failedToUpdateTableSchema(message: String)
  • The data provider was unable to fetch the requested row(s) from the data source. message contains the details of the given failure.

    Declaration

    Swift

    case unableToGetRows(message: String)
  • The data provider was unable to complete the given batch update command. message contains the details of the given failure.

    Declaration

    Swift

    case batchUpdateFailed(message: String)
  • While attempting to create or update a table schema, the data provider encountered a nil value. Use either the register or update functions with a fully populated default value class instance (with all values set to a default, non-nil value) to create or update the table schema. message contains the details of the given failure.

    Declaration

    Swift

    case missingRequiredValue(message: String)