Google IMA SDK for Android



com.google.ads.interactivemedia.api
Class AdError

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by com.google.ads.interactivemedia.api.AdError
All Implemented Interfaces:
Serializable

public class AdError
extends Exception

Describes an error that occurred in the SDK. This exception will generally be passed to a listener rather than thrown. Machine-readable information about the error is contained in its type and code. Its message will be a human-readable version of the same information, potentially with additional details about the cause. If there is additional information about the error, it will be in the extra details.

See Also:
Serialized Form

Nested Class Summary
static class AdError.AdErrorCode
          The types of error that can be encountered.
static class AdError.AdErrorType
          Specifies when the error was encountered, during either ad loading or playback.
 
Constructor Summary
AdError(AdError.AdErrorType errorType, AdError.AdErrorCode errorCode, String detailMessage)
           
 
Method Summary
 AdError.AdErrorCode getErrorCode()
          Returns the error's code.
 AdError.AdErrorType getErrorType()
          Returns the error's type.
 String getMessage()
          Returns a human-readable summary of the error.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AdError

public AdError(AdError.AdErrorType errorType,
               AdError.AdErrorCode errorCode,
               String detailMessage)
Method Detail

getErrorType

public AdError.AdErrorType getErrorType()
Returns the error's type.


getErrorCode

public AdError.AdErrorCode getErrorCode()
Returns the error's code.


getMessage

public String getMessage()
Returns a human-readable summary of the error.

Overrides:
getMessage in class Throwable