Error Handling
API methods for both the agent and wrapper return error objects. In the success cases the methods will return nothing.
For asynchronous errors (e.g. failure to send an activity to UAV), the error object will be passed to the onError callback defined in the configuration.
Where retries are possible, onError will only be called when the maximum number of retries have been attempted.
Where relevant, the error object will also contain an extra attribute, providing additional information. For example, the extra attribute for UAV_HTTP_ERROR will contain details of the HTTP error, and of the activity.
Details of the error objects can be found within OTV Analytics Agent for Browsers APIs .