Remove extra param from createForVideoFrameProcessingException
This arg was always the same value, so it can be simplified. PiperOrigin-RevId: 525677735
This commit is contained in:
parent
316a2ce0ee
commit
3bc0172188
@ -284,12 +284,14 @@ public final class ExportException extends Exception {
|
|||||||
* Creates an instance for a {@link VideoFrameProcessor} related exception.
|
* Creates an instance for a {@link VideoFrameProcessor} related exception.
|
||||||
*
|
*
|
||||||
* @param cause The cause of the failure.
|
* @param cause The cause of the failure.
|
||||||
* @param errorCode See {@link #errorCode}.
|
|
||||||
* @return The created instance.
|
* @return The created instance.
|
||||||
*/
|
*/
|
||||||
/* package */ static ExportException createForVideoFrameProcessingException(
|
/* package */ static ExportException createForVideoFrameProcessingException(
|
||||||
VideoFrameProcessingException cause, int errorCode) {
|
VideoFrameProcessingException cause) {
|
||||||
return new ExportException("Video frame processing error", cause, errorCode);
|
return new ExportException(
|
||||||
|
"Video frame processing error",
|
||||||
|
cause,
|
||||||
|
ExportException.ERROR_CODE_VIDEO_FRAME_PROCESSING_FAILED);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -164,8 +164,7 @@ import org.checkerframework.dataflow.qual.Pure;
|
|||||||
@Override
|
@Override
|
||||||
public void onError(VideoFrameProcessingException exception) {
|
public void onError(VideoFrameProcessingException exception) {
|
||||||
errorConsumer.accept(
|
errorConsumer.accept(
|
||||||
ExportException.createForVideoFrameProcessingException(
|
ExportException.createForVideoFrameProcessingException(exception));
|
||||||
exception, ExportException.ERROR_CODE_VIDEO_FRAME_PROCESSING_FAILED));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
@ -180,8 +179,7 @@ import org.checkerframework.dataflow.qual.Pure;
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
} catch (VideoFrameProcessingException e) {
|
} catch (VideoFrameProcessingException e) {
|
||||||
throw ExportException.createForVideoFrameProcessingException(
|
throw ExportException.createForVideoFrameProcessingException(e);
|
||||||
e, ExportException.ERROR_CODE_VIDEO_FRAME_PROCESSING_FAILED);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user