Google is committed to advancing racial equity for Black communities. See how.


class OperationCanceledException : Exception
   ↳ kotlin.Throwable
   ↳ java.lang.Exception

An exception representing a failure that the operation is canceled which might be caused by a new value is set or camera is closed.

This is different from CancellationException. While CancellationException means the ListenableFuture was cancelled by Future#cancel(boolean), OperationCanceledException occurs when there is something wrong inside CameraControl and it has to cancel the operation.