Package com.google.android.exoplayer2
Class ParserException
- java.lang.Object
- 
- java.lang.Throwable
- 
- java.lang.Exception
- 
- java.io.IOException
- 
- com.google.android.exoplayer2.ParserException
 
 
 
 
- 
- All Implemented Interfaces:
- Serializable
 - Direct Known Subclasses:
- SsManifestParser.MissingFieldException,- UnrecognizedInputFormatException
 
 @Deprecated public class ParserException extends IOException 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 SummaryFields Modifier and Type Field Description booleancontentIsMalformedDeprecated.Whether the parsing error was caused by a bitstream not following the expected format.intdataTypeDeprecated.Thedata typeof the parsed bitstream.
 - 
Constructor SummaryConstructors Modifier Constructor Description protectedParserException(String message, Throwable cause, boolean contentIsMalformed, @com.google.android.exoplayer2.C.DataType int dataType)Deprecated.
 - 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static ParserExceptioncreateForMalformedContainer(String message, Throwable cause)Deprecated.static ParserExceptioncreateForMalformedDataOfUnknownType(String message, Throwable cause)Deprecated.static ParserExceptioncreateForMalformedManifest(String message, Throwable cause)Deprecated.static ParserExceptioncreateForManifestWithUnsupportedFeature(String message, Throwable cause)Deprecated.static ParserExceptioncreateForUnsupportedContainerFeature(String message)Deprecated.StringgetMessage()Deprecated.- 
Methods inherited from class java.lang.ThrowableaddSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
- 
 
- 
- 
- 
Field Detail- 
contentIsMalformedpublic 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.
 - 
dataTypepublic final int dataType Deprecated.Thedata typeof the parsed bitstream.
 
- 
 - 
Method Detail- 
createForMalformedDataOfUnknownTypepublic static ParserException createForMalformedDataOfUnknownType(@Nullable String message, @Nullable Throwable cause) Deprecated.- Parameters:
- message- See- getMessage().
- cause- See- Throwable.getCause().
- Returns:
- The created instance.
 
 - 
createForMalformedContainerpublic static ParserException createForMalformedContainer(@Nullable String message, @Nullable Throwable cause) Deprecated.- Parameters:
- message- See- getMessage().
- cause- See- Throwable.getCause().
- Returns:
- The created instance.
 
 - 
createForMalformedManifestpublic static ParserException createForMalformedManifest(@Nullable String message, @Nullable Throwable cause) Deprecated.- Parameters:
- message- See- getMessage().
- cause- See- Throwable.getCause().
- Returns:
- The created instance.
 
 - 
createForManifestWithUnsupportedFeaturepublic static ParserException createForManifestWithUnsupportedFeature(@Nullable String message, @Nullable Throwable cause) Deprecated.- Parameters:
- message- See- getMessage().
- cause- See- Throwable.getCause().
- Returns:
- The created instance.
 
 - 
createForUnsupportedContainerFeaturepublic static ParserException createForUnsupportedContainerFeature(@Nullable String message) Deprecated.- Parameters:
- message- See- getMessage().
- Returns:
- The created instance.
 
 - 
getMessage@Nullable public String getMessage() Deprecated.- Overrides:
- getMessagein class- Throwable
 
 
- 
 
-