RequestSurfacePackageException

public final class RequestSurfacePackageException
extends Exception

java.lang.Object
   ↳ java.lang.Throwable
     ↳ java.lang.Exception
       ↳ android.app.sdksandbox.RequestSurfacePackageException


Eccezione lanciata da SdkSandboxManager#requestSurfacePackage

Riepilogo

Costruttori pubblici

RequestSurfacePackageException(int requestSurfacePackageErrorCode, String message)

Inizializza un oggetto RequestSurfacePackageException con un codice risultato e un messaggio

RequestSurfacePackageException(int requestSurfacePackageErrorCode, String message, Throwable cause)

Inizializza un oggetto RequestSurfacePackageException con un codice risultato, un messaggio e una causa.

RequestSurfacePackageException(int requestSurfacePackageErrorCode, String message, Throwable cause, Bundle extraInfo)

Inizializza RequestSurfacePackageException con un codice risultato, un messaggio, una causa e informazioni aggiuntive.

Metodi pubblici

Bundle getExtraErrorInformation()

Restituisce le informazioni aggiuntive sull'errore con cui è stata creata questa eccezione.

int getRequestSurfacePackageErrorCode()

Restituisce il codice risultato con cui è stata creata questa eccezione.

Metodi ereditati

Costruttori pubblici

RequestSurfacePackageException

public RequestSurfacePackageException (int requestSurfacePackageErrorCode, 
                String message)

Inizializza un oggetto RequestSurfacePackageException con un codice risultato e un messaggio

Parametri
requestSurfacePackageErrorCode int: il codice del risultato. Il valore è SdkSandboxManager.REQUEST_SURFACE_PACKAGE_INTERNAL_ERROR o SdkSandboxManager.REQUEST_SURFACE_PACKAGE_SDK_NOT_LOADED

message String: il messaggio dettagliato salvato per un recupero successivo mediante il metodo Throwable.getMessage(). Questo valore può essere null.

RequestSurfacePackageException

public RequestSurfacePackageException (int requestSurfacePackageErrorCode, 
                String message, 
                Throwable cause)

Inizializza un oggetto RequestSurfacePackageException con un codice risultato, un messaggio e una causa.

Parametri
requestSurfacePackageErrorCode int: il codice del risultato. Il valore è SdkSandboxManager.REQUEST_SURFACE_PACKAGE_INTERNAL_ERROR o SdkSandboxManager.REQUEST_SURFACE_PACKAGE_SDK_NOT_LOADED

message String: il messaggio dettagliato salvato per un recupero successivo mediante il metodo Throwable.getMessage(). Questo valore può essere null.

cause Throwable: la causa dell'eccezione, che viene salvata per recuperarla in un secondo momento dal metodo Throwable.getCause(). È consentito un valore nullo che indica che la causa è inesistente o sconosciuta.

RequestSurfacePackageException

public RequestSurfacePackageException (int requestSurfacePackageErrorCode, 
                String message, 
                Throwable cause, 
                Bundle extraInfo)

Inizializza RequestSurfacePackageException con un codice risultato, un messaggio, una causa e informazioni aggiuntive.

Parametri
requestSurfacePackageErrorCode int: il codice del risultato. Il valore è SdkSandboxManager.REQUEST_SURFACE_PACKAGE_INTERNAL_ERROR o SdkSandboxManager.REQUEST_SURFACE_PACKAGE_SDK_NOT_LOADED

message String: il messaggio dettagliato salvato per un recupero successivo mediante il metodo Throwable.getMessage(). Questo valore può essere null.

cause Throwable: la causa dell'eccezione, che viene salvata per recuperarla in un secondo momento dal metodo Throwable.getCause(). È consentito un valore nullo che indica che la causa è inesistente o sconosciuta.

extraInfo Bundle: informazioni aggiuntive sull'errore. Il campo è vuoto se non esistono informazioni di questo tipo. Questo valore non può essere null.

Metodi pubblici

getExtraErrorInformation

public Bundle getExtraErrorInformation ()

Restituisce le informazioni aggiuntive sull'errore con cui è stata creata questa eccezione.

Ritorni
Bundle Il bundle di informazioni sull'errore aggiuntivo. Questo valore non può essere null.

getRequestSurfacePackageErrorCode

public int getRequestSurfacePackageErrorCode ()

Restituisce il codice risultato con cui è stata creata questa eccezione.

Ritorni
int Il codice risultato di SdkSandboxManager#requestSurfacePackage Il valore è SdkSandboxManager.REQUEST_SURFACE_PACKAGE_INTERNAL_ERROR o SdkSandboxManager.REQUEST_SURFACE_PACKAGE_SDK_NOT_LOADED