All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.opentripplanner.transit.model.framework.DataValidationException Maven / Gradle / Ivy

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