Stay organized with collections Save and categorize content based on your preferences.

FrameProcessingException

@UnstableApi
public final class FrameProcessingException extends Exception


Thrown when an exception occurs while applying effects 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.

Creates an instance.

FrameProcessingException(String message, long presentationTimeUs)

Creates an instance.

FrameProcessingException(Throwable cause, long presentationTimeUs)

Creates an instance.

FrameProcessingException(
    String message,
    Throwable cause,
    long presentationTimeUs
)

Creates an instance.

Public methods

static FrameProcessingException
from(Exception exception, long presentationTimeUs)

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

static FrameProcessingException
from(Exception exception)

Wraps the given exception in a FrameProcessingException if it is not already a FrameProcessingException 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

FrameProcessingException

public FrameProcessingException(String message)

Creates an instance.

Parameters
String message

The detail message for this exception.

FrameProcessingException

public FrameProcessingException(Throwable cause)

Creates an instance.

Parameters
Throwable cause

The cause of this exception.

FrameProcessingException

public FrameProcessingException(String message, Throwable cause)

Creates an instance.

Parameters
String message

The detail message for this exception.

Throwable cause

The cause of this exception.

FrameProcessingException

public FrameProcessingException(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.

FrameProcessingException

public FrameProcessingException(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.

FrameProcessingException

public FrameProcessingException(
    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 FrameProcessingException from(Exception exception, long presentationTimeUs)

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

from

public static FrameProcessingException from(Exception exception)

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