VideoFrameProcessingException


@UnstableApi
public final class VideoFrameProcessingException extends Exception


Thrown when an exception occurs while preparing an Effect, or applying an Effect to video frames.

Summary

Public fields

final long

The microsecond timestamp of the frame being processed while the exception occurred or TIME_UNSET if unknown.

Public constructors

Creates an instance.

Creates an instance.

VideoFrameProcessingException(Throwable cause, long presentationTimeUs)

Creates an instance.

Creates an instance.

VideoFrameProcessingException(String message, long presentationTimeUs)

Creates an instance.

VideoFrameProcessingException(
    String message,
    Throwable cause,
    long presentationTimeUs
)

Creates an instance.

Public methods

static VideoFrameProcessingException
from(Exception exception)

Wraps the given exception in a VideoFrameProcessingException if it is not already a VideoFrameProcessingException and returns the exception otherwise.

static VideoFrameProcessingException
from(Exception exception, long presentationTimeUs)

Wraps the given exception in a VideoFrameProcessingException with the given timestamp if it is not already a VideoFrameProcessingException and returns the exception otherwise.

Inherited methods

From java.lang.Throwable
synchronized final void
synchronized Throwable
synchronized Throwable
String
String
StackTraceElement[]
synchronized final Throwable[]
synchronized Throwable
void
void
setStackTrace(StackTraceElement[] stackTrace)
String

Public fields

presentationTimeUs

public final long presentationTimeUs

The microsecond timestamp of the frame being processed while the exception occurred or TIME_UNSET if unknown.

Public constructors

VideoFrameProcessingException

public VideoFrameProcessingException(Throwable cause)

Creates an instance.

Parameters
Throwable cause

The cause of this exception.

VideoFrameProcessingException

public VideoFrameProcessingException(String message)

Creates an instance.

Parameters
String message

The detail message for this exception.

VideoFrameProcessingException

public VideoFrameProcessingException(Throwable cause, long presentationTimeUs)

Creates an instance.

Parameters
Throwable cause

The cause of this exception.

long presentationTimeUs

The timestamp of the frame for which the exception occurred.

VideoFrameProcessingException

public VideoFrameProcessingException(String message, Throwable cause)

Creates an instance.

Parameters
String message

The detail message for this exception.

Throwable cause

The cause of this exception.

VideoFrameProcessingException

public VideoFrameProcessingException(String message, long presentationTimeUs)

Creates an instance.

Parameters
String message

The detail message for this exception.

long presentationTimeUs

The timestamp of the frame for which the exception occurred.

VideoFrameProcessingException

public VideoFrameProcessingException(
    String message,
    Throwable cause,
    long presentationTimeUs
)

Creates an instance.

Parameters
String message

The detail message for this exception.

Throwable cause

The cause of this exception.

long presentationTimeUs

The timestamp of the frame for which the exception occurred.

Public methods

from

public static VideoFrameProcessingException from(Exception exception)

Wraps the given exception in a VideoFrameProcessingException if it is not already a VideoFrameProcessingException and returns the exception otherwise.

from

public static VideoFrameProcessingException from(Exception exception, long presentationTimeUs)

Wraps the given exception in a VideoFrameProcessingException with the given timestamp if it is not already a VideoFrameProcessingException and returns the exception otherwise.