If you encounter an issue inside your connection callback (e.g. an HTTP 4xx response from a backend), and you want to communicate this to the user, you can now resolve the callback using a Scrivito.DataConnectionError
instance to communicate the error to the user. The error is then made available to your app via the DataScope#getError()
API.
Furthermore, an error that occurs while a DataLocator
is being evaluated in the Scrivito.useDataLocator
hook is also caught and made available via DataScope#getError
of the returned scope object.