DtdiStatusCodes

object DtdiStatusCodes


Status codes for Dtdi results.

Summary

Constants

const Int

The operation failed due to API throttling.

const Int

The result was canceled either due to client disconnect or {@link com.google.android.gms.common.api.PendingResult#cancel()}.

const Int

The client side is dead.

const Int

The application is misconfigured.

const Int

The operation failed, without any more information.

const Int

An internal error occurred.

const Int

The operation failed because the API was called out of order.

const Int

The operation was successful.

const Int

Timed out while awaiting the result.

Public functions

String
getStatusCodeString(statusCode: Int)

Returns an untranslated debug (not user-friendly!) string based on the current status code.

Constants

API_CALL_THROTTLED

const val API_CALL_THROTTLED = 54000: Int

The operation failed due to API throttling.

CANCELED

const val CANCELED: Int

The result was canceled either due to client disconnect or {@link com.google.android.gms.common.api.PendingResult#cancel()}.

DEAD_CLIENT

const val DEAD_CLIENT: Int

The client side is dead. This status would never get called back to client.

DEVELOPER_ERROR

const val DEVELOPER_ERROR: Int

The application is misconfigured. This error is not recoverable and will be treated as fatal. The developer should look at the logs after this to determine more actionable information.

ERROR

const val ERROR: Int

The operation failed, without any more information.

INTERNAL_ERROR

const val INTERNAL_ERROR: Int

An internal error occurred. Retrying should resolve the problem.

OUT_OF_ORDER_API_CALL

const val OUT_OF_ORDER_API_CALL = 54001: Int

The operation failed because the API was called out of order.

For example, if closeSession is called before createSession, this error will be returned.

SUCCESS

const val SUCCESS: Int

The operation was successful.

TIMEOUT

const val TIMEOUT: Int

Timed out while awaiting the result.

Public functions

getStatusCodeString

fun getStatusCodeString(statusCode: Int): String

Returns an untranslated debug (not user-friendly!) string based on the current status code.