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 |
static Int |
Indicates that the |
static Int |
Indicates that an |
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 |
Constants
ERROR_AUTHENTICATION_FAILED
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
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
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
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
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
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
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
CallComposerException
CallComposerException(
errorCode: Int,
ioException: IOException?)
Public methods
getErrorCode
open fun getErrorCode(): Int
Fetches the error code associated with this exception.
getIOException
open fun getIOException(): IOException?
Fetches the IOException
that caused the error.
Return | |
---|---|
IOException? |
This value may be null . |