UdpDataSource.UdpDataSourceException


class UdpDataSource.UdpDataSourceException : DataSourceException


Thrown when an error is encountered when trying to read from a UdpDataSource.

Summary

Public constructors

UdpDataSourceException(
    cause: Throwable!,
    @PlaybackException.ErrorCode errorCode: Int
)

Creates a UdpDataSourceException.

Inherited properties

From androidx.media3.datasource.DataSourceException
Int

The reason of this DataSourceException, should be one of the ERROR_CODE_IO_* in PlaybackException.ErrorCode.

Public constructors

UdpDataSourceException

UdpDataSourceException(
    cause: Throwable!,
    @PlaybackException.ErrorCode errorCode: Int
)

Creates a UdpDataSourceException.

Parameters
cause: Throwable!

The error cause.

@PlaybackException.ErrorCode errorCode: Int

Reason of the error, should be one of the ERROR_CODE_IO_* in .