CrossDevicePromptException


public final class CrossDevicePromptException extends ApiException


An exception indicating something went wrong with the Cross Device Prompt API.

See getErrorCode for the specific problem.

Summary

Public methods

int

Returns an error code value from CrossDevicePromptErrorCode.

int

Returns the error code resulting from the operation.

Inherited fields

From com.google.android.gms.common.api.ApiException
final Status

This field is deprecated.

Inherited methods

From com.google.android.gms.common.api.ApiException
Status
String

This method is deprecated.

From java.lang.Throwable
synchronized final void
synchronized Throwable
synchronized Throwable
String
String
StackTraceElement[]
synchronized final Throwable[]
synchronized Throwable
void
void
setStackTrace(StackTraceElement[] p)
String

Public constructors

CrossDevicePromptException

public CrossDevicePromptException(@CrossDevicePromptErrorCode int errorCode)

CrossDevicePromptException

public CrossDevicePromptException(Status status)

Public methods

getErrorCode

@CrossDevicePromptErrorCode
public int getErrorCode()

Returns an error code value from CrossDevicePromptErrorCode.

getStatusCode

public int getStatusCode()

Returns the error code resulting from the operation. The value is one of the constants in CrossDevicePromptErrorCode. getStatusCode() is unsupported by CrossDevicePromptException, please use getErrorCode() instead.