package org.joda.time;

/* loaded from: classes.dex */
public class IllegalInstantException extends IllegalArgumentException {
    private static final long serialVersionUID = 2858712538216L;

    public IllegalInstantException(String str) {
        super(str);
    }

    private static String a(long j10, String str) {
        String str2;
        String i10 = org.joda.time.format.a.b("yyyy-MM-dd'T'HH:mm:ss.SSS").i(new Instant(j10));
        if (str != null) {
            str2 = " (" + str + ")";
        } else {
            str2 = "";
        }
        return "Illegal instant due to time zone offset transition (daylight savings time 'gap'): " + i10 + str2;
    }

    public IllegalInstantException(long j10, String str) {
        super(a(j10, str));
    }
}
