public final class

UdpDataSource.UdpDataSourceException

extends DataSourceException

 java.lang.Object

↳java.lang.Throwable

↳java.lang.Exception

↳java.io.IOException

androidx.media3.datasource.DataSourceException

↳androidx.media3.datasource.UdpDataSource.UdpDataSourceException

Overview

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

Summary

Fields
from DataSourceExceptionPOSITION_OUT_OF_RANGE, reason
Constructors
publicUdpDataSourceException(java.lang.Throwable cause, int errorCode)

Creates a UdpDataSourceException.

Methods
from DataSourceExceptionisCausedByPositionOutOfRange
from java.lang.ThrowableaddSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
from java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

Constructors

public UdpDataSourceException(java.lang.Throwable cause, int errorCode)

Creates a UdpDataSourceException.

Parameters:

cause: The error cause.
errorCode: Reason of the error, should be one of the ERROR_CODE_IO_* in .