mirror of
https://github.com/VibedByKaKi/alexandroid.git
synced 2026-12-04 19:48:54 +01:00
23 lines
732 B
Java
23 lines
732 B
Java
package org.apache.commons.io;
|
|
|
|
import java.io.IOException;
|
|
|
|
/* compiled from: r8-map-id-b9432e0f623b4a4bff4ba50a8a24c4aafad2c1e11092747b9fb5e6a22af5a940 */
|
|
/* loaded from: classes10.dex */
|
|
public class IOIndexedException extends IOException {
|
|
private static final long serialVersionUID = 1;
|
|
private final int index;
|
|
|
|
public IOIndexedException(int i, Throwable th) {
|
|
super(toMessage(i, th), th);
|
|
this.index = i;
|
|
}
|
|
|
|
public static String toMessage(int i, Throwable th) {
|
|
return String.format("%s #%,d: %s", th == null ? "Null" : th.getClass().getSimpleName(), Integer.valueOf(i), th != null ? th.getMessage() : "Null");
|
|
}
|
|
|
|
public int getIndex() {
|
|
return this.index;
|
|
}
|
|
}
|