Back to Exoplayer

ParserException (ExoPlayer library)

docs/doc/reference/com/google/android/exoplayer2/ParserException.html

latest10.0 KB
Original Source

Package com.google.android.exoplayer2

Class ParserException


[@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

Field Summary

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. |

Constructor Summary

Constructors | Modifier | Constructor | Description | | --- | --- | --- | | protected | ParserException​(String message, Throwable cause, boolean contentIsMalformed, @com.google.android.exoplayer2.C.DataType int dataType) | Deprecated. |

Method Summary

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. |

- 

Methods inherited from class java.lang.Throwable

addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, 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

Field Detail

- 

contentIsMalformed

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.

- 

dataType

public final int dataType

Deprecated.

The data type of the parsed bitstream.

Constructor Detail

- 

ParserException

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.

Method Detail

- 

createForMalformedDataOfUnknownType

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.

- 

createForMalformedContainer

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.

- 

createForMalformedManifest

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.

- 

createForManifestWithUnsupportedFeature

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.

- 

createForUnsupportedContainerFeature

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.

- 

getMessage

@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