
org.opentripplanner.transit.model.framework.DataValidationException Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of otp Show documentation
Show all versions of otp Show documentation
The OpenTripPlanner multimodal journey planning system
The newest version!
package org.opentripplanner.transit.model.framework;
import org.opentripplanner.framework.error.OtpError;
/**
* This class is used to throw a data validation exception. It holds an error which can be
* inserted into build issue store, into the updater logs or returned to the APIs. The framework
* to catch and handle this is NOT IN PLACE, see
* Error code design #5070.
*
* MORE WORK ON THIS IS NEEDED!
*/
public class DataValidationException extends RuntimeException {
private final OtpError error;
public DataValidationException(OtpError error) {
super();
this.error = error;
}
public OtpError error() {
return error;
}
@Override
public String getMessage() {
return error.message();
}
@Override
public String toString() {
return getMessage();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy