DBError class is a subclass of
NSError that always has
domain set to
Any method expected to fail will return a
DBError object via the last parameter. Additionally, errors that happen in the background via syncing can also be retrieved, such as the error property on DBFileStatus.
Some failures (those which represent bugs or internal errors) will instead raise a DBException when they occur in an API method. A
DBError will still be used if such a failure occurs on a background thread.
The code on a DBError object is always listed in the DBErrorCode enum.