docs/doc/reference/com/google/android/exoplayer2/decoder/DecoderException.html
Package com.google.android.exoplayer2.decoder
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
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. |
-
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
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.
-
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.
-
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.