public interface ErrorHandler
Because most of the Camera3 code is asynchronous, exceptions can't always be thrown to the user. This interface provides a channel for Camera3 to send error messages back to the caller so that they can be displayed to the user.
For debugging, you can use Camera3.ERROR_HANDLER_DEFAULT
, which just logs everything.
Modifier and Type | Method and Description |
---|---|
void |
error(java.lang.String message,
java.lang.Exception e)
Called when a fatal error occurred that definitely prevented the camera form working in a way
that is visible to the user.
|
void |
info(java.lang.String message)
Called throughout the Camera3 code for debugging.
|
void |
warning(java.lang.String message)
Called when we suspect that the user might have made a mistake or when minor error occurred
that might alter the behavior of the camera.
|
void error(java.lang.String message, @Nullable java.lang.Exception e)
message
- the error messagee
- the Exception that was thrown (if any)void warning(java.lang.String message)
message
- the error messagevoid info(java.lang.String message)
message
- the info message