Class 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 Detail

      • presentationTimeUs

        public final long presentationTimeUs
        The microsecond timestamp of the frame being processed while the exception occurred or C.TIME_UNSET if 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 a FrameProcessingException if it is not already a FrameProcessingException and returns the exception otherwise.
      • 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.