what-the-bank/sources/org/bouncycastle/i18n/MissingEntryException.java

76 lines
2.3 KiB
Java

package org.bouncycastle.i18n;
import java.net.URL;
import java.net.URLClassLoader;
import java.util.Locale;
/* loaded from: classes6.dex */
public class MissingEntryException extends RuntimeException {
private String debugMsg;
protected final String key;
protected final ClassLoader loader;
protected final Locale locale;
protected final String resource;
public String getResource() {
return this.resource;
}
public Locale getLocale() {
return this.locale;
}
public String getKey() {
return this.key;
}
public String getDebugMsg() {
if (this.debugMsg == null) {
StringBuilder sb = new StringBuilder("Can not find entry ");
sb.append(this.key);
sb.append(" in resource file ");
sb.append(this.resource);
sb.append(" for the locale ");
sb.append(this.locale);
sb.append(".");
this.debugMsg = sb.toString();
ClassLoader classLoader = this.loader;
if (classLoader instanceof URLClassLoader) {
URL[] uRLs = ((URLClassLoader) classLoader).getURLs();
StringBuilder sb2 = new StringBuilder();
sb2.append(this.debugMsg);
sb2.append(" The following entries in the classpath were searched: ");
this.debugMsg = sb2.toString();
for (int i = 0; i != uRLs.length; i++) {
StringBuilder sb3 = new StringBuilder();
sb3.append(this.debugMsg);
sb3.append(uRLs[i]);
sb3.append(" ");
this.debugMsg = sb3.toString();
}
}
}
return this.debugMsg;
}
public ClassLoader getClassLoader() {
return this.loader;
}
public MissingEntryException(String str, Throwable th, String str2, String str3, Locale locale, ClassLoader classLoader) {
super(str, th);
this.resource = str2;
this.key = str3;
this.locale = locale;
this.loader = classLoader;
}
public MissingEntryException(String str, String str2, String str3, Locale locale, ClassLoader classLoader) {
super(str);
this.resource = str2;
this.key = str3;
this.locale = locale;
this.loader = classLoader;
}
}