30 lines
745 B
Java
30 lines
745 B
Java
|
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;
|
||
|
}
|
||
|
}
|