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

30 lines
745 B
Java
Raw Normal View History

2024-07-27 18:17:47 +07:00
package org.bouncycastle.i18n;
import java.util.Locale;
/* loaded from: classes6.dex */
public class LocalizedException extends Exception {
private Throwable cause;
protected ErrorBundle message;
public ErrorBundle getErrorMessage() {
return this.message;
}
@Override // java.lang.Throwable
public Throwable getCause() {
return this.cause;
}
public LocalizedException(ErrorBundle errorBundle, Throwable th) {
super(errorBundle.getText(Locale.getDefault()));
this.message = errorBundle;
this.cause = th;
}
public LocalizedException(ErrorBundle errorBundle) {
super(errorBundle.getText(Locale.getDefault()));
this.message = errorBundle;
}
}