Package 

Interface CloudXErrorCode


  • 
    public interface CloudXErrorCode
    
                        

    Error codes returned by the CloudX SDK.

    Error codes are organized into ranges by category:

    • 0: General errors

    • 100–199: Network errors — from CloudX server communication (config fetch, bid requests, geo lookups). Not from ad network SDKs — those are in the Adapter (600–699) range. These can surface during initialization (via onInitializationFailed()) or ad loading (via onAdLoadFailed()), depending on which request failed.

    • 200–299: Initialization errors — codes 201–204 are delivered via onInitializationFailed(). Code 200 (NOT_INITIALIZED) fires when load() or show() is called before initialization completes, delivered via onAdLoadFailed() or onAdDisplayFailed().

    • 300–399: Ad loading errors — delivered via onAdLoadFailed(adUnitId, error) for all ad formats (banner, MREC, interstitial, rewarded).

    • 400–499: Ad display errors — fullscreen ads only (interstitial, rewarded), delivered via onAdDisplayFailed(cloudXAd, error). Banners report load errors only.

    • 500–599: Reserved, currently unused.

    • 600–699: Adapter errors — from individual ad network SDKs, mapped to standardized CloudX codes. When a single bid fails, the publisher sees the specific adapter error. When multiple bids all fail, the publisher sees NO_FILL (302) instead. Individual adapter init failures are not surfaced to the publisher; the SDK tracks them via metrics, and the publisher receives onInitialized() successfully.

    • Method Summary

      Modifier and Type Method Description
      abstract Integer getCode() Numeric error code.
      abstract String getName() Error code name (e.g., "NO_FILL", "NETWORK_ERROR").
      abstract String getDescription() Human-readable description of the error.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait