jimu-decompiled/sources/com/bottle/hp/album/capture/camera/OpenCameraException.java
2025-05-13 19:24:51 +02:00

39 lines
1.0 KiB
Java

package com.bottle.hp.album.capture.camera;
import android.util.Log;
/* loaded from: classes.dex */
public class OpenCameraException extends Exception {
private static final String LOG_PREFIX = "Unable to open camera - ";
private static final long serialVersionUID = -7340415176385044242L;
private final String TAG;
private final OpenType mType;
public enum OpenType {
INUSE("Camera disabled or in use by other process"),
NOCAMERA("Device does not have camera");
private String mMessage;
OpenType(String str) {
this.mMessage = str;
}
public String getMessage() {
return this.mMessage;
}
}
public OpenCameraException(OpenType openType) {
super(openType.getMessage());
this.TAG = OpenCameraException.class.getSimpleName();
this.mType = openType;
}
@Override // java.lang.Throwable
public void printStackTrace() {
Log.e(this.TAG, LOG_PREFIX + this.mType.getMessage());
super.printStackTrace();
}
}