RequestSurfacePackageException
public
final
class
RequestSurfacePackageException
extends Exception
| java.lang.Object | |||
| ↳ | java.lang.Throwable | ||
| ↳ | java.lang.Exception | ||
| ↳ | android.app.sdksandbox.RequestSurfacePackageException | ||
SdkSandboxManager#requestSurfacePackage 擲回的例外狀況
摘要
公用建構函式 | |
|---|---|
RequestSurfacePackageException(int requestSurfacePackageErrorCode, String message)
使用結果代碼和訊息初始化 |
|
RequestSurfacePackageException(int requestSurfacePackageErrorCode, String message, Throwable cause)
使用結果代碼、訊息和 |
|
RequestSurfacePackageException(int requestSurfacePackageErrorCode, String message, Throwable cause, Bundle extraInfo)
使用結果代碼、訊息和原因初始化 |
|
公用方法 | |
|---|---|
Bundle
|
getExtraErrorInformation()
傳回建構這個例外狀況時使用的額外錯誤資訊。 |
int
|
getRequestSurfacePackageErrorCode()
傳回建構這個例外狀況時使用的結果代碼。 |
繼承方法 | |
|---|---|
公用建構函式
RequestSurfacePackageException
public RequestSurfacePackageException (int requestSurfacePackageErrorCode,
String message)使用結果代碼和訊息初始化 RequestSurfacePackageException
| 參數 | |
|---|---|
requestSurfacePackageErrorCode |
int:結果代碼。
這個值可以是 SdkSandboxManager.REQUEST_SURFACE_PACKAGE_INTERNAL_ERROR 或 SdkSandboxManager.REQUEST_SURFACE_PACKAGE_SDK_NOT_LOADED |
message |
String:透過 Throwable.getMessage() 方法儲存的詳細訊息,以供日後擷取。
此值可以是 null。 |
RequestSurfacePackageException
public RequestSurfacePackageException (int requestSurfacePackageErrorCode,
String message,
Throwable cause)使用結果代碼、訊息和RequestSurfacePackageException
。
| 參數 | |
|---|---|
requestSurfacePackageErrorCode |
int:結果代碼。
這個值可以是 SdkSandboxManager.REQUEST_SURFACE_PACKAGE_INTERNAL_ERROR 或 SdkSandboxManager.REQUEST_SURFACE_PACKAGE_SDK_NOT_LOADED |
message |
String:透過 Throwable.getMessage() 方法儲存的詳細訊息,以供日後擷取。
此值可以是 null。 |
cause |
Throwable:例外狀況原因,使用 Throwable.getCause() 方法儲存以供日後擷取。允許為空值,表示造成原因
不存在或不明的原因 |
RequestSurfacePackageException
public RequestSurfacePackageException (int requestSurfacePackageErrorCode,
String message,
Throwable cause,
Bundle extraInfo)使用結果代碼、訊息和原因初始化 RequestSurfacePackageException
以及其他資訊
| 參數 | |
|---|---|
requestSurfacePackageErrorCode |
int:結果代碼。
這個值可以是 SdkSandboxManager.REQUEST_SURFACE_PACKAGE_INTERNAL_ERROR 或 SdkSandboxManager.REQUEST_SURFACE_PACKAGE_SDK_NOT_LOADED |
message |
String:透過 Throwable.getMessage() 方法儲存的詳細訊息,以供日後擷取。
此值可以是 null。 |
cause |
Throwable:例外狀況原因,使用 Throwable.getCause() 方法儲存以供日後擷取。允許為空值,表示造成原因
不存在或不明的原因 |
extraInfo |
Bundle:額外的錯誤資訊。如果沒有這類資訊,則這個欄位會留空。
此值不能為 null。 |
公用方法
getExtraErrorInformation
public Bundle getExtraErrorInformation ()
傳回建構這個例外狀況時使用的額外錯誤資訊。
| 傳回 | |
|---|---|
Bundle |
額外錯誤資訊組合。
此值不能為 null。 |
getRequestSurfacePackageErrorCode
public int getRequestSurfacePackageErrorCode ()
傳回建構這個例外狀況時使用的結果代碼。
| 傳回 | |
|---|---|
int |
SdkSandboxManager#requestSurfacePackage 的結果代碼
這個值可以是 SdkSandboxManager.REQUEST_SURFACE_PACKAGE_INTERNAL_ERROR 或 SdkSandboxManager.REQUEST_SURFACE_PACKAGE_SDK_NOT_LOADED |