Back to Exoplayer

DecoderException (ExoPlayer library)

docs/doc/reference/com/google/android/exoplayer2/decoder/DecoderException.html

latest3.6 KB
Original Source

Package com.google.android.exoplayer2.decoder

Class DecoderException

  • java.lang.Object

  • All Implemented Interfaces:SerializableDirect Known Subclasses:FfmpegDecoderException, FlacDecoderException, Gav1DecoderException, MediaCodecDecoderException, OpusDecoderException, SubtitleDecoderException, VpxDecoderException


[@Deprecated](https://developer.android.com/reference/java/lang/Deprecated.html "class or interface in java.lang")public classDecoderExceptionextends[Exception](https://developer.android.com/reference/java/lang/Exception.html "class or interface in java.lang")

Deprecated. com.google.android.exoplayer2 is deprecated. Please migrate to androidx.media3 (which contains the same ExoPlayer code). See the migration guide for more details, including a script to help with the migration.

Thrown when a Decoder error occurs. See Also:Serialized Form

Constructor Summary

Constructors | Constructor | Description | | --- | --- | | DecoderException​(String message) | Deprecated.

Creates an instance. | | DecoderException​(String message, Throwable cause) | Deprecated.

Creates an instance. | | DecoderException​(Throwable cause) | Deprecated.

Creates an instance. |

Method Summary

- 

Methods inherited from class java.lang.Throwable

addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString

- 

Methods inherited from class java.lang.Object

clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

Constructor Detail

- 

DecoderException

public DecoderException​([String](https://developer.android.com/reference/java/lang/String.html "class or interface in java.lang")message)

Deprecated.

Creates an instance. Parameters:message - The detail message for this exception.

- 

DecoderException

public DecoderException​(@Nullable[Throwable](https://developer.android.com/reference/java/lang/Throwable.html "class or interface in java.lang")cause)

Deprecated.

Creates an instance. Parameters:cause - The cause of this exception, or null.

- 

DecoderException

public DecoderException​([String](https://developer.android.com/reference/java/lang/String.html "class or interface in java.lang")message,
                        @Nullable[Throwable](https://developer.android.com/reference/java/lang/Throwable.html "class or interface in java.lang")cause)

Deprecated.

Creates an instance. Parameters:message - The detail message for this exception.cause - The cause of this exception, or null.