
org.opentripplanner.api.error.PlannerError 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.api.error;
import java.util.List;
import org.opentripplanner.api.common.Message;
/** This API response element represents an error in trip planning. */
public class PlannerError {
public final int id;
public final String msg;
public final Message message;
public List missing = null;
/** An error where no path has been found, but no points are missing */
public PlannerError(Message msg) {
this.message = msg;
this.msg = msg.get();
this.id = msg.getId();
}
/**
* @return the list of point names which cannot be found (from, to, intermediate.n)
*/
public List getMissing() {
return missing;
}
/**
* @param missing the list of point names which cannot be found (from, to, intermediate.n)
*/
public void setMissing(List missing) {
this.missing = missing;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy