public final class

DeferrableSurface.SurfaceClosedException

extends java.lang.Exception

 java.lang.Object

↳java.lang.Throwable

↳java.lang.Exception

↳androidx.camera.core.impl.DeferrableSurface.SurfaceClosedException

Overview

The exception that is returned by the ListenableFuture of DeferrableSurface.getSurface() if the backing the DeferrableSurface has already been closed.

Summary

Constructors
publicSurfaceClosedException(java.lang.String s, DeferrableSurface surface)

Methods
public DeferrableSurfacegetDeferrableSurface()

Returns the DeferrableSurface that generated the exception.

from java.lang.ThrowableaddSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
from java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

Constructors

public SurfaceClosedException(java.lang.String s, DeferrableSurface surface)

Methods

public DeferrableSurface getDeferrableSurface()

Returns the DeferrableSurface that generated the exception.

The deferrable surface will already be closed.