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:
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.
Comments
0 comments
Please sign in to leave a comment.