- Added realracing3-community.apk (71.57 MB) - Removed 32-bit support (armeabi-v7a) - Only includes arm64-v8a libraries - Decompiled source code included - Added README-community.md with analysis
40 lines
1.4 KiB
Java
40 lines
1.4 KiB
Java
package com.helpshift.network.exception;
|
|
|
|
/* loaded from: classes3.dex */
|
|
public class HSRootApiException extends RuntimeException {
|
|
public final String errorMessage;
|
|
public final Exception exception;
|
|
public final ExceptionType exceptionType;
|
|
|
|
public interface ExceptionType {
|
|
}
|
|
|
|
public HSRootApiException(Exception exc, ExceptionType exceptionType, String str) {
|
|
super(str, exc);
|
|
this.exception = exc;
|
|
this.exceptionType = exceptionType;
|
|
this.errorMessage = str;
|
|
}
|
|
|
|
public static HSRootApiException wrap(Exception exc, ExceptionType exceptionType) {
|
|
return wrap(exc, exceptionType, null);
|
|
}
|
|
|
|
public static HSRootApiException wrap(Exception exc, ExceptionType exceptionType, String str) {
|
|
if (exc instanceof HSRootApiException) {
|
|
HSRootApiException hSRootApiException = (HSRootApiException) exc;
|
|
Exception exc2 = hSRootApiException.exception;
|
|
if (exceptionType == null) {
|
|
exceptionType = hSRootApiException.exceptionType;
|
|
}
|
|
if (str == null) {
|
|
str = hSRootApiException.errorMessage;
|
|
}
|
|
exc = exc2;
|
|
} else if (exceptionType == null) {
|
|
exceptionType = UnexpectedException.GENERIC;
|
|
}
|
|
return new HSRootApiException(exc, exceptionType, str);
|
|
}
|
|
}
|