Class FrameProcessingException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- com.google.android.exoplayer2.util.FrameProcessingException
-
- All Implemented Interfaces:
Serializable
public final class FrameProcessingException extends Exception
Thrown when an exception occurs while applying effects to video frames.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description longpresentationTimeUsThe microsecond timestamp of the frame being processed while the exception occurred orC.TIME_UNSETif unknown.
-
Constructor Summary
Constructors Constructor Description FrameProcessingException(String message)Creates an instance.FrameProcessingException(String message, long presentationTimeUs)Creates an instance.FrameProcessingException(String message, Throwable cause)Creates an instance.FrameProcessingException(String message, Throwable cause, long presentationTimeUs)Creates an instance.FrameProcessingException(Throwable cause)Creates an instance.FrameProcessingException(Throwable cause, long presentationTimeUs)Creates an instance.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static FrameProcessingExceptionfrom(Exception exception)Wraps the given exception in aFrameProcessingExceptionif it is not already aFrameProcessingExceptionand returns the exception otherwise.static FrameProcessingExceptionfrom(Exception exception, long presentationTimeUs)Wraps the given exception in aFrameProcessingExceptionwith the given timestamp if it is not already aFrameProcessingExceptionand returns the exception otherwise.-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Field Detail
-
presentationTimeUs
public final long presentationTimeUs
The microsecond timestamp of the frame being processed while the exception occurred orC.TIME_UNSETif unknown.
-
-
Constructor Detail
-
FrameProcessingException
public FrameProcessingException(String message)
Creates an instance.- Parameters:
message- The detail message for this exception.
-
FrameProcessingException
public FrameProcessingException(String message, long presentationTimeUs)
Creates an instance.- Parameters:
message- The detail message for this exception.presentationTimeUs- The timestamp of the frame for which the exception occurred.
-
FrameProcessingException
public FrameProcessingException(String message, Throwable cause)
Creates an instance.- Parameters:
message- The detail message for this exception.cause- The cause of this exception.
-
FrameProcessingException
public FrameProcessingException(String message, Throwable cause, long presentationTimeUs)
Creates an instance.- Parameters:
message- The detail message for this exception.cause- The cause of this exception.presentationTimeUs- The timestamp of the frame for which the exception occurred.
-
FrameProcessingException
public FrameProcessingException(Throwable cause)
Creates an instance.- Parameters:
cause- The cause of this exception.
-
FrameProcessingException
public FrameProcessingException(Throwable cause, long presentationTimeUs)
Creates an instance.- Parameters:
cause- The cause of this exception.presentationTimeUs- The timestamp of the frame for which the exception occurred.
-
-
Method Detail
-
from
public static FrameProcessingException from(Exception exception)
Wraps the given exception in aFrameProcessingExceptionif it is not already aFrameProcessingExceptionand returns the exception otherwise.
-
from
public static FrameProcessingException from(Exception exception, long presentationTimeUs)
Wraps the given exception in aFrameProcessingExceptionwith the given timestamp if it is not already aFrameProcessingExceptionand returns the exception otherwise.
-
-