DittoSwiftError

public enum DittoSwiftError : Error
extension DittoSwiftError: LocalizedError

All errors that are thrown by the Ditto SDK are wrapped as a DittoSwiftError. It wraps multiple different types of error that each have an associated reason.

You can access more specific information about an error by switching over the error’s reason value. If you want a human-readable version of the error then call localizedDescription on the error’s reason.

  • activationError: An error occurred relating to activating the Ditto instance.
  • authenticationError: An error occurred relating to authenticating the Ditto instance.
  • busError: An error occurred relating to the bus.
  • encryptionError: An error occurred relating to encryption.
  • migrationError: An error occurred relating to migrations.
  • storeError: An error occurred relating to the store.
  • transportError: An error occurred relating to the network transports.
  • validationError: An error occurred relating to input validation.
  • ioError: An error occurred relating to I/O.
  • unsupportedError: Operation is not supported.