AdError

public final class AdError extends Exception

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.

Nested Class Summary

enum AdError.AdErrorCode The types of error that can be encountered. 
enum AdError.AdErrorType Specifies when the error was encountered, during either ad loading or playback. 

Public Constructor Summary

AdError(AdError.AdErrorType errorType, int errorCode, String detailMessage)
AdError(AdError.AdErrorType errorType, AdError.AdErrorCode errorCode, String detailMessage)

Public Method Summary

AdError.AdErrorCode
getErrorCode()
Returns the error's code.
int
getErrorCodeNumber()
Returns the error code's number.
AdError.AdErrorType
getErrorType()
Returns the error's type.
String
getMessage()
Returns a human-readable summary of the error.

Inherited Method Summary

Public Constructors

public AdError (AdError.AdErrorType errorType, int errorCode, String detailMessage)

Parameters
errorType
errorCode
detailMessage

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

Parameters
errorType
errorCode
detailMessage

Public Methods

public AdError.AdErrorCode getErrorCode ()

Returns the error's code.

public int getErrorCodeNumber ()

Returns the error code's number.

public AdError.AdErrorType getErrorType ()

Returns the error's type.

public String getMessage ()

Returns a human-readable summary of the error.