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.

Summary

Nested types

The types of error that can be encountered.

Specifies when the error was encountered, during either ad loading or playback.

Public constructors

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

Public methods

AdError.AdErrorCode

Returns the error's code.

int

Returns the error code's number.

AdError.AdErrorType

Returns the error's type.

String

Returns a human-readable summary of the error.

Inherited methods

From java.lang.Throwable
synchronized final void
synchronized Throwable
synchronized Throwable
String
StackTraceElement[]
synchronized final Throwable[]
synchronized Throwable
void
void
setStackTrace(StackTraceElement[] p)

Public fields

errorCode

public final AdError.AdErrorCode errorCode

errorType

public final AdError.AdErrorType errorType

Public constructors

AdError

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

AdError

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

Public methods

getErrorCode

public AdError.AdErrorCode getErrorCode()

Returns the error's code.

getErrorCodeNumber

public int getErrorCodeNumber()

Returns the error code's number.

getErrorType

public AdError.AdErrorType getErrorType()

Returns the error's type.

getMessage

public String getMessage()

Returns a human-readable summary of the error.