Google IMA SDK for Android
Class AdError

  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by
All Implemented Interfaces:

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


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


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


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


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

getMessage in class Throwable