RequestSurfacePackageException


public final class RequestSurfacePackageException
extends Exception

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


This class was deprecated in API level 36.
Exception is used at SdkSandboxManager#requestSurfacePackage which is getting deprecated.

Exception thrown by SdkSandboxManager#requestSurfacePackage

Summary

Public constructors

RequestSurfacePackageException(int requestSurfacePackageErrorCode, String message)

Initializes a RequestSurfacePackageException with a result code and a message

RequestSurfacePackageException(int requestSurfacePackageErrorCode, String message, Throwable cause)

Initializes a RequestSurfacePackageException with a result code, a message and a cause.

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

Initializes a RequestSurfacePackageException with a result code, a message, a cause and extra information.

Public methods

Bundle getExtraErrorInformation()

Returns the extra error information this exception was constructed with.

int getRequestSurfacePackageErrorCode()

Returns the result code this exception was constructed with.

Inherited methods

Public constructors

RequestSurfacePackageException

public RequestSurfacePackageException (int requestSurfacePackageErrorCode, 
                String message)

Initializes a RequestSurfacePackageException with a result code and a message

Parameters
requestSurfacePackageErrorCode int: The result code. Value is SdkSandboxManager.REQUEST_SURFACE_PACKAGE_INTERNAL_ERROR, or SdkSandboxManager.REQUEST_SURFACE_PACKAGE_SDK_NOT_LOADED

message String: The detailed message which is saved for later retrieval by the Throwable.getMessage() method. This value may be null.

RequestSurfacePackageException

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

Initializes a RequestSurfacePackageException with a result code, a message and a cause.

Parameters
requestSurfacePackageErrorCode int: The result code. Value is SdkSandboxManager.REQUEST_SURFACE_PACKAGE_INTERNAL_ERROR, or SdkSandboxManager.REQUEST_SURFACE_PACKAGE_SDK_NOT_LOADED

message String: The detailed message which is saved for later retrieval by the Throwable.getMessage() method. This value may be null.

cause Throwable: The cause of the exception, which is saved for later retrieval by the Throwable.getCause() method. A null value is permitted, and indicates that the cause is nonexistent or unknown.

RequestSurfacePackageException

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

Initializes a RequestSurfacePackageException with a result code, a message, a cause and extra information.

Parameters
requestSurfacePackageErrorCode int: The result code. Value is SdkSandboxManager.REQUEST_SURFACE_PACKAGE_INTERNAL_ERROR, or SdkSandboxManager.REQUEST_SURFACE_PACKAGE_SDK_NOT_LOADED

message String: The detailed message which is saved for later retrieval by the Throwable.getMessage() method. This value may be null.

cause Throwable: The cause of the exception, which is saved for later retrieval by the Throwable.getCause() method. A null value is permitted, and indicates that the cause is nonexistent or unknown.

extraInfo Bundle: Extra error information. This is empty if there is no such information. This value cannot be null.

Public methods

getExtraErrorInformation

Added in API level 34
Also in Ad Services Extensions 4
Deprecated in API level 36
public Bundle getExtraErrorInformation ()

Returns the extra error information this exception was constructed with.

Returns
Bundle The extra error information Bundle. This value cannot be null.

getRequestSurfacePackageErrorCode

Added in API level 34
Also in Ad Services Extensions 4
Deprecated in API level 36
public int getRequestSurfacePackageErrorCode ()

Returns the result code this exception was constructed with.

Returns
int The result code from SdkSandboxManager#requestSurfacePackage Value is SdkSandboxManager.REQUEST_SURFACE_PACKAGE_INTERNAL_ERROR, or SdkSandboxManager.REQUEST_SURFACE_PACKAGE_SDK_NOT_LOADED