CallException


class CallException : RuntimeException


This class defines exceptions that can be thrown when using androidx.core.telecom APIs.

Summary

Constants

const Int

Telecom was not able to switch the audio route to Bluetooth because the Bluetooth device is null.

const Int

The operation has failed because Telecom cannot set the requested call as the current active call.

const Int

The CallControlScope.setInactive or CallsManager.addCall#onSetInactive failed because the CallAttributesCompat.SUPPORTS_SET_INACTIVE was not set.

const Int

The operation has failed because Telecom has already removed the call from the server side and destroyed all the objects associated with it.

const Int

The operation has failed because there is either no PhoneAccount registered with Telecom for the given operation, or the limit of calls has been reached.

const Int

The operation has failed due to Telecom failing to hold the current active call for the call attempting to become the new active call.

const Int

The operation has failed because the operation failed to complete before the timeout

const Int

The operation has failed due to an unknown or unspecified error.

Public constructors

Public functions

open operator Boolean
equals(other: Any?)
open Int
open String

Public properties

Int

Inherited properties

From kotlin.Throwable

Constants

ERROR_BLUETOOTH_DEVICE_IS_NULL

const val ERROR_BLUETOOTH_DEVICE_IS_NULL = 8: Int

Telecom was not able to switch the audio route to Bluetooth because the Bluetooth device is null. The user should reconnect the Bluetooth device and retry the audio route switch.

ERROR_CALL_CANNOT_BE_SET_TO_ACTIVE

const val ERROR_CALL_CANNOT_BE_SET_TO_ACTIVE = 4: Int

The operation has failed because Telecom cannot set the requested call as the current active call. The client should end the current active call and re-try the operation.

ERROR_CALL_DOES_NOT_SUPPORT_HOLD

const val ERROR_CALL_DOES_NOT_SUPPORT_HOLD = 7: Int

The CallControlScope.setInactive or CallsManager.addCall#onSetInactive failed because the CallAttributesCompat.SUPPORTS_SET_INACTIVE was not set. Please re-add the call with the CallAttributesCompat.SUPPORTS_SET_INACTIVE if the call should be able to hold.

ERROR_CALL_IS_NOT_BEING_TRACKED

const val ERROR_CALL_IS_NOT_BEING_TRACKED = 3: Int

The operation has failed because Telecom has already removed the call from the server side and destroyed all the objects associated with it. The client should re-add the call.

ERROR_CALL_NOT_PERMITTED_AT_PRESENT_TIME

const val ERROR_CALL_NOT_PERMITTED_AT_PRESENT_TIME = 5: Int

The operation has failed because there is either no PhoneAccount registered with Telecom for the given operation, or the limit of calls has been reached. The client should end the current active call and re-try the failed operation.

ERROR_CANNOT_HOLD_CURRENT_ACTIVE_CALL

const val ERROR_CANNOT_HOLD_CURRENT_ACTIVE_CALL = 2: Int

The operation has failed due to Telecom failing to hold the current active call for the call attempting to become the new active call. The client should end the current active call and re-try the failed operation.

ERROR_OPERATION_TIMED_OUT

const val ERROR_OPERATION_TIMED_OUT = 6: Int

The operation has failed because the operation failed to complete before the timeout

ERROR_UNKNOWN

const val ERROR_UNKNOWN = 1: Int

The operation has failed due to an unknown or unspecified error.

Public constructors

CallException

Added in 1.0.0-beta01
CallException(code: Int = ERROR_UNKNOWN)

Public functions

equals

open operator fun equals(other: Any?): Boolean

hashCode

open fun hashCode(): Int

toString

open fun toString(): String

Public properties

code

Added in 1.0.0-beta01
val codeInt