Class AdFetchFailureException
-
- All Implemented Interfaces:
-
java.io.Serializable
public class AdFetchFailureException extends RuntimeException
Exception thrown when ad fetch operations fail due to various error conditions.
This open class represents failures that occur during ad fetching from remote ad servers. It encapsulates both the high-level status information and detailed error classification to enable proper error handling and reporting throughout the ad loading pipeline.
The exception provides comprehensive error information including status codes, messages, and specific error types to support debugging, telemetry, and user experience optimization based on different failure scenarios.
-
-
Field Summary
Fields Modifier and Type Field Description private final InMobiAdRequestStatusstatusprivate final AdFetchErroradFetchErrorprivate final Throwablecauseprivate final Stringmessage
-
Constructor Summary
Constructors Constructor Description AdFetchFailureException(InMobiAdRequestStatus status, AdFetchError adFetchError)
-
Method Summary
Modifier and Type Method Description final InMobiAdRequestStatusgetStatus()final AdFetchErrorgetAdFetchError()StringtoString()-
Methods inherited from class kotlin.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Constructor Detail
-
AdFetchFailureException
AdFetchFailureException(InMobiAdRequestStatus status, AdFetchError adFetchError)
- Parameters:
status- The InMobiAdRequestStatus containing status code and messageadFetchError- The specific AdFetchError providing detailed error classification
-
-
Method Detail
-
getStatus
final InMobiAdRequestStatus getStatus()
-
getAdFetchError
final AdFetchError getAdFetchError()
-
-
-
-