ImageCaptureException

public class ImageCaptureException
extends Exception

java.lang.Object
   ↳ java.lang.Throwable
     ↳ java.lang.Exception
       ↳ androidx.camera.core.ImageCaptureException


An exception thrown to indicate an error has occurred during image capture or while saving the captured image. See ImageCapture.OnImageCapturedCallback and ImageCapture.OnImageSavedCallback.

Summary

Public constructors

ImageCaptureException(int imageCaptureError, String message, Throwable cause)

Public methods

int getImageCaptureError()

Returns the type of the image capture error.

Inherited methods

Public constructors

ImageCaptureException

public ImageCaptureException (int imageCaptureError, 
                String message, 
                Throwable cause)

Parameters
imageCaptureError int

message String

cause Throwable

Public methods

getImageCaptureError

public int getImageCaptureError ()

Returns the type of the image capture error.

Returns
int The image capture error type, can have one of the following values: ImageCapture.ERROR_UNKNOWN, ImageCapture.ERROR_FILE_IO, ImageCapture.ERROR_CAPTURE_FAILED, ImageCapture.ERROR_CAMERA_CLOSED, ImageCapture.ERROR_INVALID_CAMERA.