what-the-bank/sources/com/facetec/sdk/ae.java

58 lines
1.4 KiB
Java
Raw Permalink Normal View History

2024-07-27 18:17:47 +07:00
package com.facetec.sdk;
import java.util.Locale;
/* loaded from: classes.dex */
final class ae extends Exception {
/* JADX INFO: Access modifiers changed from: package-private */
public ae(e eVar) {
this(eVar, "");
}
/* JADX INFO: Access modifiers changed from: package-private */
public ae(e eVar, String str) {
super(c(eVar, str));
}
/* JADX INFO: Access modifiers changed from: package-private */
public ae(Throwable th) {
super(c(e.UNKNOWN, ""), th);
}
/* JADX INFO: Access modifiers changed from: package-private */
public ae(e eVar, Throwable th) {
super(c(eVar, ""), th);
}
private static String c(e eVar, String str) {
String format = String.format(Locale.US, "Camera error (%d)", Integer.valueOf(eVar.i));
if (str.isEmpty()) {
return format;
}
StringBuilder sb = new StringBuilder();
sb.append(format);
sb.append(": ");
sb.append(str);
return sb.toString();
}
/* JADX INFO: Access modifiers changed from: package-private */
/* loaded from: classes.dex */
public enum e {
UNKNOWN(0),
PERMISSION_DENIED(1),
OPEN_TIMEOUT(2),
LOCK_OPEN_TIMEOUT(3),
CLOSE_ERROR(4),
FRONT_FACING_NOT_FOUND(5),
NO_OUTPUT_SIZES(6),
ACCESS_ERROR(7);
final int i;
e(int i) {
this.i = i;
}
}
}