Package 

Interface ErrorCallback


  • 
    public interface ErrorCallback
    
                        

    Project Name: OSMOS-Android-SDK File Name: ErrorCallback

    Callback interface for handling Ad Fetcher error scenarios only. On success, the function returns Map<String,Any> as usual. This callback is only invoked when an error occurs.

    • Method Summary

      Modifier and Type Method Description
      abstract Unit onError(String errorCode, String errorMessage, Throwable throwable) Called when the ad fetch operation encounters an error.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • onError

         abstract Unit onError(String errorCode, String errorMessage, Throwable throwable)

        Called when the ad fetch operation encounters an error.

        Parameters:
        errorCode - The error code identifying the type of error
        errorMessage - A human-readable description of the error
        throwable - Optional throwable that caused the error (null if not applicable)