/*
 * Decompiled with CFR 0.152.
 */
import java.io.PrintStream;

public final class jw
extends Exception {
    public Throwable a;

    public jw(String string, az az2, Throwable throwable) {
        StringBuffer stringBuffer = new StringBuffer();
        string = string != null ? string + " " : "";
        stringBuffer = stringBuffer.append(string).append("(position:" + az2.c() + ") ");
        string = throwable != null ? "caused by: " + throwable : "";
        super(stringBuffer.append(string).toString());
        this.a = throwable;
    }

    public final void printStackTrace() {
        if (this.a == null) {
            super.printStackTrace();
            return;
        }
        PrintStream printStream = System.err;
        synchronized (printStream) {
            System.err.println(super.getMessage() + "; nested exception is:");
            this.a.printStackTrace();
            return;
        }
    }
}

