ApiException

class ApiException 
: Exception 
Known direct subclasses

Exception to be returned by a Task when a call to Google Play services has failed with a possible resolution.


Exception to be returned by a Task when a call to Google Play services has failed.

Summary

Public constructors

ApiException (status:  Status )

Create an ApiException from a Status .

Public functions

Status

Returns the status of the operation.

Int

Indicates the status of the operation.

String ?

This function is deprecated.

use getMessage for a summary of the cause.

Protected properties

Status !
@ SuppressViolation (value = "hide_members_annotation")
mStatus

This property is deprecated.

use getStatus instead.

Inherited functions

Public constructors

ApiException

 ApiException 
(status:  Status 
)

Create an ApiException from a Status .

Parameters
status:  Status

the Status instance containing a message and code.

Public functions

getStatus

fun  getStatus 
():  Status 

Returns the status of the operation.

getStatusCode

fun  getStatusCode 
():  Int 

Indicates the status of the operation.

Returns
Int

Status code resulting from the operation. The value is one of the constants in or specific to the API in use.

getStatusMessage

fun    getStatusMessage 
 
 
():  String 
?

Protected properties

mStatus

@ SuppressViolation 
(value = "hide_members_annotation")
protected val  mStatus Status !
Design a Mobile Site
View Site in Mobile | Classic
Share by: