OnDevicePersonalizationException

public class OnDevicePersonalizationException
extends Exception

java.lang.Object
   ↳ java.lang.Throwable
     ↳ java.lang.Exception
       ↳ android.adservices.ondevicepersonalization.OnDevicePersonalizationException


OnDevicePersonalization API 擲回的例外狀況。

摘要

常數

int ERROR_ISOLATED_SERVICE_FAILED

叫用的 IsolatedService 無法執行。

公用方法

int getErrorCode()

傳回此例外狀況的錯誤代碼。

繼承方法

final void addSuppressed(Throwable exception)

將指定的例外狀況附加至遭封鎖的例外狀況,以便提供這個指定的例外狀況。

Throwable fillInStackTrace()

填入執行堆疊追蹤。

Throwable getCause()

傳回發生此 Throwable 的原因。如果沒有原因或原因不明,會傳回 null

String getLocalizedMessage()

建立此 Throwable 的本地化說明。

String getMessage()

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

StackTraceElement[] getStackTrace()

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

final Throwable[] getSuppressed()

傳回包含所有遭封鎖例外狀況的陣列,以便提供此例外狀況。例外狀況通常是遭 try-with-resources 陳述式封鎖。

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()

讓目前的執行緒等待,直到遭到喚醒為止。喚醒方式通常是收到「通知」或遭到「中斷」

常數

ERROR_ISOLATED_SERVICE_FAILED

public static final int ERROR_ISOLATED_SERVICE_FAILED

叫用的 IsolatedService 無法執行。

常數值: 1 (0x00000001)

公用方法

getErrorCode

public int getErrorCode ()

傳回此例外狀況的錯誤代碼。

傳回
int 值為 ERROR_ISOLATED_SERVICE_FAILED 或 android.adservices.ondevicepersonalization.OnDevicePersonalizationException.ERROR_PERSONALIZATION_DISABLED