While working with the SDK, you can receive a DIOError object inside callbacks in case of failure:
- Upon initialisation;
- When requesting an ad;
- When loading an ad.
This DIOError extends Error and can provide a message that contains a short description of error cause and can be retrieved with getMessage() method. DIOError also contains the ErrorCode which defines the cause of the Error:
The list above contains the error codes that can be used to determine specific errors and handle the cases appropriately.