AdServicesException

public class AdServicesException
extends Exception

java.lang.Object
   ↳ java.lang.Throwable
     ↳ java.lang.Exception
       ↳ android.adservices.exceptions.AdServicesException


AdServices 擲回的例外狀況。

摘要

公用建構函式

AdServicesException(String message, Throwable e)
AdServicesException(String message)

繼承方法

final void addSuppressed(Throwable exception)

將指定的例外狀況附加至已撤銷的例外狀況 以便處理此例外狀況。

Throwable fillInStackTrace()

填入執行堆疊追蹤。

Throwable getCause()

傳回發生此 Throwable 的原因;如果null 或原因為何?

String getLocalizedMessage()

建立此 Throwable 的本地化說明。

String getMessage()

傳回此 Throwable 的詳細訊息字串。

StackTraceElement[] getStackTrace()

提供程式輔助方法來存取列印的堆疊追蹤資訊 printStackTrace()

final Throwable[] getSuppressed()

傳回包含所有例外狀況的陣列 遭抑制,通常是因資源的 try - 資源存取 陳述式,才能處理這類例外狀況

Throwable initCause(Throwable cause)

將此 Throwable 的「原因」初始化為指定值。

void printStackTrace()

將此 throwable 及其回溯追蹤記錄列印至 標準錯誤串流。

void printStackTrace(PrintWriter s)

將此 throwable 及其回溯追蹤記錄列印至指定的 。

void printStackTrace(PrintStream s)

將此 throwable 及其回溯追蹤記錄列印至指定的列印串流。

void setStackTrace(StackTraceElement[] stackTrace)

設定要由 getStackTrace(),列印者:printStackTrace() 和相關方法,

String toString()

傳回此 Throwable 的簡短說明。

Object clone()

建立並傳回此物件的副本。

boolean equals(Object obj)

指出是否有其他物件「等於」這個。

void finalize()

在垃圾收集作業時,垃圾收集器會呼叫該物件上的 判斷物件沒有其他參照

final Class<?> getClass()

傳回此 Object 的執行階段類別。

int hashCode()

傳回該物件的雜湊碼值。

final void notify()

喚醒目前等待這個物件的 監控功能

final void notifyAll()

喚醒所有等待此物件監控器的執行緒。

String toString()

傳回該物件的字串表示法。

final void wait(long timeoutMillis, int nanos)

讓目前的執行緒等待,直到遭到喚醒為止。 通知中斷, 是否經過一定的即時效能

final void wait(long timeoutMillis)

讓目前的執行緒等待,直到遭到喚醒為止。 通知中斷, 是否經過一定的即時效能

final void wait()

讓目前的執行緒等待,直到遭到喚醒為止。 通知受到干擾

公用建構函式

AdServicesException

已加至 API 級別 34
也已納入 Ad Services Extensions 4
public AdServicesException (String message, 
                Throwable e)

參數
message String:這個值可以是 null

e Throwable:這個值可以是 null

AdServicesException

已加至 API 級別 34
也已納入 Ad Services Extensions 4
public AdServicesException (String message)

參數
message String:這個值可以是 null