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 |