docs/doc/reference/com/google/android/exoplayer2/ParserException.html
Package com.google.android.exoplayer2
All Implemented Interfaces:SerializableDirect Known Subclasses:SsManifestParser.MissingFieldException, UnrecognizedInputFormatException
[@Deprecated](https://developer.android.com/reference/java/lang/Deprecated.html "class or interface in java.lang")public classParserExceptionextends[IOException](https://developer.android.com/reference/java/io/IOException.html "class or interface in java.io")
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 an error occurs parsing media data and metadata. See Also:Serialized Form
Fields | Modifier and Type | Field | Description |
| --- | --- | --- |
| boolean | contentIsMalformed |
Deprecated.
Whether the parsing error was caused by a bitstream not following the expected format.
|
| int | dataType |
Deprecated.
The data type of the parsed bitstream.
|
Constructors | Modifier | Constructor | Description |
| --- | --- | --- |
| protected | ParserException(String message, Throwable cause, boolean contentIsMalformed, @com.google.android.exoplayer2.C.DataType int dataType) |
Deprecated.
|
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods | Modifier and Type | Method | Description |
| --- | --- | --- |
| static ParserException | createForMalformedContainer(String message, Throwable cause) |
Deprecated.
Creates a new instance for which contentIsMalformed is true and dataType is C.DATA_TYPE_MEDIA.
|
| static ParserException | createForMalformedDataOfUnknownType(String message, Throwable cause) |
Deprecated.
Creates a new instance for which contentIsMalformed is true and dataType is C.DATA_TYPE_UNKNOWN.
|
| static ParserException | createForMalformedManifest(String message, Throwable cause) |
Deprecated.
Creates a new instance for which contentIsMalformed is true and dataType is C.DATA_TYPE_MANIFEST.
|
| static ParserException | createForManifestWithUnsupportedFeature(String message, Throwable cause) |
Deprecated.
Creates a new instance for which contentIsMalformed is false and dataType is C.DATA_TYPE_MANIFEST.
|
| static ParserException | createForUnsupportedContainerFeature(String message) |
Deprecated.
Creates a new instance for which contentIsMalformed is false and dataType is C.DATA_TYPE_MEDIA.
|
| String | getMessage() |
Deprecated.
|
-
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
public final boolean contentIsMalformed
Deprecated.
Whether the parsing error was caused by a bitstream not following the expected format. May be false when a parser encounters a legal condition which it does not support.
-
public final int dataType
Deprecated.
The data type of the parsed bitstream.
-
protected ParserException(@Nullable[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,
boolean contentIsMalformed,
@com.google.android.exoplayer2.C.DataType int dataType)
Deprecated.
-
public static[ParserException](ParserException.html "class in com.google.android.exoplayer2")createForMalformedDataOfUnknownType(@Nullable[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 a new instance for which contentIsMalformed is true and dataType is C.DATA_TYPE_UNKNOWN.
Parameters:message - See getMessage().cause - See Throwable.getCause().Returns:The created instance.
-
public static[ParserException](ParserException.html "class in com.google.android.exoplayer2")createForMalformedContainer(@Nullable[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 a new instance for which contentIsMalformed is true and dataType is C.DATA_TYPE_MEDIA.
Parameters:message - See getMessage().cause - See Throwable.getCause().Returns:The created instance.
-
public static[ParserException](ParserException.html "class in com.google.android.exoplayer2")createForMalformedManifest(@Nullable[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 a new instance for which contentIsMalformed is true and dataType is C.DATA_TYPE_MANIFEST.
Parameters:message - See getMessage().cause - See Throwable.getCause().Returns:The created instance.
-
public static[ParserException](ParserException.html "class in com.google.android.exoplayer2")createForManifestWithUnsupportedFeature(@Nullable[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 a new instance for which contentIsMalformed is false and dataType is C.DATA_TYPE_MANIFEST.
Parameters:message - See getMessage().cause - See Throwable.getCause().Returns:The created instance.
-
public static[ParserException](ParserException.html "class in com.google.android.exoplayer2")createForUnsupportedContainerFeature(@Nullable[String](https://developer.android.com/reference/java/lang/String.html "class or interface in java.lang")message)
Deprecated.
Creates a new instance for which contentIsMalformed is false and dataType is C.DATA_TYPE_MEDIA.
Parameters:message - See getMessage().Returns:The created instance.
-
@Nullable
public[String](https://developer.android.com/reference/java/lang/String.html "class or interface in java.lang")getMessage()
Deprecated.
Overrides:getMessage in class Throwable