package com.google.crypto.tink.shaded.protobuf;

import java.io.IOException;
import java.util.Locale;

/* JADX INFO: loaded from: classes2.dex */
public class CodedOutputStream$OutOfSpaceException extends IOException {
    private static final long serialVersionUID = -6947486886997889499L;

    public CodedOutputStream$OutOfSpaceException(IndexOutOfBoundsException indexOutOfBoundsException) {
        super("CodedOutputStream was writing to a flat byte array and ran out of space.", indexOutOfBoundsException);
    }

    public CodedOutputStream$OutOfSpaceException(int i10, int i11, int i12, IndexOutOfBoundsException indexOutOfBoundsException) {
        super(defpackage.e.i("CodedOutputStream was writing to a flat byte array and ran out of space.: ", String.format(Locale.US, "Pos: %d, limit: %d, len: %d", Long.valueOf(i10), Long.valueOf(i11), Integer.valueOf(i12))), indexOutOfBoundsException);
    }
}
