73 lines
1.8 KiB
Java
73 lines
1.8 KiB
Java
|
package com.kofax.mobile.sdk._internal.impl;
|
||
|
|
||
|
import com.kofax.kmc.kut.utilities.error.ErrorInfo;
|
||
|
import com.kofax.kmc.kut.utilities.error.KmcRuntimeException;
|
||
|
import com.kofax.mobile.sdk._internal.IBus;
|
||
|
import com.kofax.mobile.sdk._internal.impl.event.au;
|
||
|
import o.C13001fNn;
|
||
|
import o.InterfaceC13006fNs;
|
||
|
import o.InterfaceC13391fZD;
|
||
|
import o.fNA;
|
||
|
import o.fZH;
|
||
|
|
||
|
@fZH
|
||
|
/* loaded from: classes3.dex */
|
||
|
public class j extends C13001fNn implements IBus {
|
||
|
@InterfaceC13391fZD
|
||
|
public j() {
|
||
|
super(fNA.c);
|
||
|
register(this);
|
||
|
}
|
||
|
|
||
|
@Override // o.C13001fNn, com.kofax.mobile.sdk._internal.IBus
|
||
|
public void post(Object obj) {
|
||
|
try {
|
||
|
super.post(obj);
|
||
|
} catch (RuntimeException e) {
|
||
|
a(e);
|
||
|
}
|
||
|
}
|
||
|
|
||
|
@Override // o.C13001fNn, com.kofax.mobile.sdk._internal.IBus
|
||
|
public void register(Object obj) {
|
||
|
try {
|
||
|
super.register(obj);
|
||
|
} catch (RuntimeException e) {
|
||
|
a(e);
|
||
|
}
|
||
|
}
|
||
|
|
||
|
@Override // o.C13001fNn, com.kofax.mobile.sdk._internal.IBus
|
||
|
public void unregister(Object obj) {
|
||
|
try {
|
||
|
super.unregister(obj);
|
||
|
} catch (RuntimeException e) {
|
||
|
a(e);
|
||
|
}
|
||
|
}
|
||
|
|
||
|
@InterfaceC13006fNs
|
||
|
public void a(au auVar) {
|
||
|
throw auVar.Jj;
|
||
|
}
|
||
|
|
||
|
private void a(RuntimeException runtimeException) {
|
||
|
try {
|
||
|
super.post(new au(runtimeException));
|
||
|
} catch (RuntimeException e) {
|
||
|
b(e);
|
||
|
}
|
||
|
}
|
||
|
|
||
|
private void b(RuntimeException runtimeException) {
|
||
|
if (runtimeException == null) {
|
||
|
return;
|
||
|
}
|
||
|
if (runtimeException instanceof KmcRuntimeException) {
|
||
|
throw runtimeException;
|
||
|
}
|
||
|
b((RuntimeException) runtimeException.getCause());
|
||
|
throw new KmcRuntimeException(ErrorInfo.KMC_GN_UNKNOWN_ERROR, runtimeException);
|
||
|
}
|
||
|
}
|