Initial commit
This commit is contained in:
39
sources/com/safelib/TryCatchAspect.java
Normal file
39
sources/com/safelib/TryCatchAspect.java
Normal file
@@ -0,0 +1,39 @@
|
||||
package com.safelib;
|
||||
|
||||
import org.aspectj.lang.NoAspectBoundException;
|
||||
import org.aspectj.lang.ProceedingJoinPoint;
|
||||
|
||||
/* loaded from: classes.dex */
|
||||
public class TryCatchAspect {
|
||||
private static /* synthetic */ Throwable a;
|
||||
public static final /* synthetic */ TryCatchAspect b = null;
|
||||
|
||||
static {
|
||||
try {
|
||||
a();
|
||||
} catch (Throwable th) {
|
||||
a = th;
|
||||
}
|
||||
}
|
||||
|
||||
private static /* synthetic */ void a() {
|
||||
b = new TryCatchAspect();
|
||||
}
|
||||
|
||||
public static TryCatchAspect b() {
|
||||
TryCatchAspect tryCatchAspect = b;
|
||||
if (tryCatchAspect != null) {
|
||||
return tryCatchAspect;
|
||||
}
|
||||
throw new NoAspectBoundException("com.safelib.TryCatchAspect", a);
|
||||
}
|
||||
|
||||
public Object a(ProceedingJoinPoint proceedingJoinPoint) throws Throwable {
|
||||
try {
|
||||
return proceedingJoinPoint.a(proceedingJoinPoint.a());
|
||||
} catch (Exception e) {
|
||||
e.printStackTrace();
|
||||
return null;
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user