Overview
When an ad fails to load, the DARO SDK delivers a unified error object,DaroError. Every error is converted into the same DaroError.Code scheme, so publishers can handle errors with a single branching logic.
The DaroError object
The load-failure callback delivers aDaroError object. Its key properties are:
DaroError.Code has an integer raw value. When needed, read the integer with error.code.rawValue.
Unified error codes
DaroError.Code consists of the codes below. We recommend branching on code (the enum) rather than on the raw integer value.
Initialization and configuration errors
Ad load failures
Network errors
Fullscreen ad state errors
These errors occur when the load/show order of fullscreen and rewarded ads is not correct. Most are internal SDK states and require no user-facing handling.The unified code scheme shares the same values across iOS and Android. Among them,
notInitialized (-2), fullscreenAdAlreadyLoading (-26), and fullscreenAdLoadWhileShowing (-27) are defined for cross-platform consistency but may not actually occur on iOS today.Handling errors
Load failures are delivered to each ad format listener’sonAdLoadFail closure. Branch on error.code.

