Added in API level 31

CallComposerException


open class CallComposerException : Exception
kotlin.Any
   ↳ kotlin.Throwable
   ↳ java.lang.Exception
   ↳ android.telephony.TelephonyManager.CallComposerException

Exception that may be supplied to the callback in #uploadCallComposerPicture if something goes awry.

Summary

Constants
static Int

Indicates that the device failed to authenticate with the carrier when uploading the picture.

static Int

Indicates that the file or stream supplied exceeds the size limit defined in getMaximumCallComposerPictureSize().

static Int

Indicates that the InputStream passed to #uploadCallComposerPicture was closed.

static Int

Indicates that an IOException was encountered while reading the picture.

static Int

Indicates that the device is currently not connected to a network that's capable of reaching a carrier's RCS servers.

static Int

Indicates that the phone process died or otherwise became unavailable while uploading the call composer picture.

static Int

Indicates that an unknown error was encountered when uploading the call composer picture.

Public constructors
CallComposerException(errorCode: Int, ioException: IOException?)

Public methods
open Int

Fetches the error code associated with this exception.

open IOException?

Fetches the IOException that caused the error.

Constants

ERROR_AUTHENTICATION_FAILED

Added in API level 31
static val ERROR_AUTHENTICATION_FAILED: Int

Indicates that the device failed to authenticate with the carrier when uploading the picture. Clients that encounter this error should not retry the upload unless a reboot or radio reset has been performed in the interim.

Value: 3

ERROR_FILE_TOO_LARGE

Added in API level 31
static val ERROR_FILE_TOO_LARGE: Int

Indicates that the file or stream supplied exceeds the size limit defined in getMaximumCallComposerPictureSize(). Clients that encounter this error should retry the upload after reducing the size of the picture.

Value: 2

ERROR_INPUT_CLOSED

Added in API level 31
static val ERROR_INPUT_CLOSED: Int

Indicates that the InputStream passed to #uploadCallComposerPicture was closed. The caller should retry if this error is encountered, and be sure to not close the stream before the callback is called this time.

Value: 4

ERROR_IO_EXCEPTION

Added in API level 31
static val ERROR_IO_EXCEPTION: Int

Indicates that an IOException was encountered while reading the picture. The offending IOException will be available via getIOException(). Clients should use the contents of the exception to determine whether a retry is warranted.

Value: 5

ERROR_NETWORK_UNAVAILABLE

Added in API level 31
static val ERROR_NETWORK_UNAVAILABLE: Int

Indicates that the device is currently not connected to a network that's capable of reaching a carrier's RCS servers. Clients should prompt the user to remedy the issue by moving to an area with better signal, by connecting to a different network, or to retry at another time.

Value: 6

ERROR_REMOTE_END_CLOSED

Added in API level 31
static val ERROR_REMOTE_END_CLOSED: Int

Indicates that the phone process died or otherwise became unavailable while uploading the call composer picture. Clients that encounter this error should retry the upload.

Value: 1

ERROR_UNKNOWN

Added in API level 31
static val ERROR_UNKNOWN: Int

Indicates that an unknown error was encountered when uploading the call composer picture. Clients that encounter this error should retry the upload.

Value: 0

Public constructors

Public methods

getIOException

Added in API level 31
open fun getIOException(): IOException?

Fetches the IOException that caused the error.

Return
IOException? This value may be null.