ImageCaptureException


public class ImageCaptureException extends Exception


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,
    @NonNull String message,
    @Nullable Throwable cause
)

Public methods

int

Returns the type of the image capture error.

Inherited methods

From java.lang.Throwable
synchronized final void
synchronized Throwable
synchronized Throwable
String
String
StackTraceElement[]
synchronized final Throwable[]
synchronized Throwable
void
void
setStackTrace(StackTraceElement[] stackTrace)
String

Public constructors

ImageCaptureException

Added in 1.0.0
public ImageCaptureException(
    int imageCaptureError,
    @NonNull String message,
    @Nullable Throwable cause
)

Public methods

getImageCaptureError

Added in 1.0.0
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: ERROR_UNKNOWN, ERROR_FILE_IO, ERROR_CAPTURE_FAILED, ERROR_CAMERA_CLOSED, ERROR_INVALID_CAMERA.