UdpDataSource.UdpDataSourceException


public final class UdpDataSource.UdpDataSourceException extends DataSourceException


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

Summary

Public constructors

UdpDataSourceException(
    Throwable cause,
    @PlaybackException.ErrorCode int errorCode
)

Creates a UdpDataSourceException.

Inherited Constants

From androidx.media3.datasource.DataSourceException
static final int

This field is deprecated.

Use ERROR_CODE_IO_READ_POSITION_OUT_OF_RANGE.

Inherited fields

From androidx.media3.datasource.DataSourceException
final int

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

Inherited methods

From androidx.media3.datasource.DataSourceException
static boolean

Returns whether the given IOException was caused by a DataSourceException whose reason is ERROR_CODE_IO_READ_POSITION_OUT_OF_RANGE in its cause stack.

From java.lang.Throwable
synchronized final void
synchronized Throwable
synchronized Throwable
String
String
StackTraceElement[]
synchronized final Throwable[]
synchronized Throwable
void
void
setStackTrace(StackTraceElement[] stackTrace)
String

Public constructors

UdpDataSourceException

public UdpDataSourceException(
    Throwable cause,
    @PlaybackException.ErrorCode int errorCode
)

Creates a UdpDataSourceException.

Parameters
Throwable cause

The error cause.

@PlaybackException.ErrorCode int errorCode

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