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() 方法稍后检索。允许使用 null 值,表示原因不存在或未知。 |
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() 方法稍后检索。允许使用 null 值,表示原因不存在或未知。 |
extraInfo |
Bundle :额外的错误信息。如果没有此类信息,则此字段为空。
此值不能为 null 。 |
公共方法
getExtraErrorInformation
public Bundle getExtraErrorInformation ()
返回构造此异常时使用的额外错误信息。
开球回攻次数 | |
---|---|
Bundle |
额外的错误信息 Bundle。
此值不能为 null 。 |
getRequestSurfacePackageErrorCode
public int getRequestSurfacePackageErrorCode ()
返回构建此异常时使用的结果代码。
开球回攻次数 | |
---|---|
int |
SdkSandboxManager#requestSurfacePackage 的结果代码
值为 SdkSandboxManager.REQUEST_SURFACE_PACKAGE_INTERNAL_ERROR 或 SdkSandboxManager.REQUEST_SURFACE_PACKAGE_SDK_NOT_LOADED |