While working with the SDK, you may receive a DIOError object inside callbacks in case of failure:
- Upon initialization;
- When requesting an ad;
- When loading an ad.
This DIOError extends and may provide a message that contains a short description of error cause. It can be retrieved with the getMessage() method. DIOError also contains the ErrorCode which defines the cause of the Error:
ErrorMisc(0), ErrorNoDataSectionInResponse(1), ErrorNoPlacementsSectionInResponse(2), ErrorUnknownPlacementType(3), ErrorLoadingProviderMoreThanOnce(4), ErrorNoFill(5), ErrorNoAds(6), ErrorNoAd(7), ErrorAdUnavailable(8), ErrorParsing(9);
The list above contains the error codes that can be used to determine specific errors and handle the cases appropriately.