mirror of
https://github.com/VibedByKaKi/alexandroid.git
synced 2026-11-18 03:47:18 +01:00
59 lines
1.6 KiB
Java
59 lines
1.6 KiB
Java
package org.codehaus.jackson;
|
|
|
|
import defpackage.a$$ExternalSyntheticOutline0;
|
|
import java.io.IOException;
|
|
|
|
/* compiled from: r8-map-id-b9432e0f623b4a4bff4ba50a8a24c4aafad2c1e11092747b9fb5e6a22af5a940 */
|
|
/* loaded from: classes11.dex */
|
|
public class JsonProcessingException extends IOException {
|
|
static final long serialVersionUID = 123;
|
|
protected JsonLocation mLocation;
|
|
|
|
public JsonProcessingException(String str, JsonLocation jsonLocation, Throwable th) {
|
|
super(str);
|
|
if (th != null) {
|
|
initCause(th);
|
|
}
|
|
this.mLocation = jsonLocation;
|
|
}
|
|
|
|
public JsonLocation getLocation() {
|
|
return this.mLocation;
|
|
}
|
|
|
|
@Override // java.lang.Throwable
|
|
public String getMessage() {
|
|
String message = super.getMessage();
|
|
if (message == null) {
|
|
message = "N/A";
|
|
}
|
|
JsonLocation location = getLocation();
|
|
if (location == null) {
|
|
return message;
|
|
}
|
|
StringBuilder m1m = a$$ExternalSyntheticOutline0.m1m(message, "\n at ");
|
|
m1m.append(location.toString());
|
|
return m1m.toString();
|
|
}
|
|
|
|
@Override // java.lang.Throwable
|
|
public String toString() {
|
|
return getClass().getName() + ": " + getMessage();
|
|
}
|
|
|
|
public JsonProcessingException(String str) {
|
|
super(str);
|
|
}
|
|
|
|
public JsonProcessingException(String str, JsonLocation jsonLocation) {
|
|
this(str, jsonLocation, null);
|
|
}
|
|
|
|
public JsonProcessingException(String str, Throwable th) {
|
|
this(str, null, th);
|
|
}
|
|
|
|
public JsonProcessingException(Throwable th) {
|
|
this(null, null, th);
|
|
}
|
|
}
|