com.conveyal.gtfs.error.RangeError Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of gtfs-lib Show documentation
Show all versions of gtfs-lib Show documentation
A library to load and index GTFS feeds of arbitrary size using disk-backed storage
package com.conveyal.gtfs.error;
import java.io.Serializable;
/** Indicates that a number is out of the acceptable range. */
public class RangeError extends GTFSError implements Serializable {
public static final long serialVersionUID = 1L;
final double min, max, actual;
public RangeError(String file, long line, String field, double min, double max, double actual) {
super(file, line, field);
this.min = min;
this.max = max;
this.actual = actual;
}
@Override public String getMessage() {
return String.format("Number %s outside of acceptable range [%s,%s].", actual, min, max);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy