Class AdError
java.lang.Object
com.codename1.ads.AdError
public class AdError
extends java.lang.Object
Describes a failure delivered to
AdListener.onFailedToLoad(AdError) or
AdListener.onShowFailed(AdError). The numeric getCode() and getDomain()
are provider specific (e.g. the underlying SDK error code), while getMessage()
is a human readable description.-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intGeneric internal error code.static final intError code used when the request was rejected as invalid (e.g. a bad ad unit id).static final intError code used when the network was unavailable.static final intError code used when no ad was available to fill the request.static final intError code used when no ad provider is installed or the format is unsupported. -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Field Details
-
CODE_NO_FILL
public static final int CODE_NO_FILLError code used when no ad was available to fill the request.- See Also:
-
CODE_NETWORK_ERROR
public static final int CODE_NETWORK_ERRORError code used when the network was unavailable.- See Also:
-
CODE_INVALID_REQUEST
public static final int CODE_INVALID_REQUESTError code used when the request was rejected as invalid (e.g. a bad ad unit id).- See Also:
-
CODE_UNSUPPORTED
public static final int CODE_UNSUPPORTEDError code used when no ad provider is installed or the format is unsupported.- See Also:
-
CODE_INTERNAL
public static final int CODE_INTERNALGeneric internal error code.- See Also:
-
-
Constructor Details
-
AdError
-
-
Method Details
-
getCode
public int getCode()The provider specific numeric error code. -
getDomain
The provider specific error domain, may be null. -
getMessage
A human readable description of the failure. -
toString
- Overrides:
toStringin classjava.lang.Object
-