
de.uni.freiburg.iig.telematik.jagal.graph.exception.VertexNotFoundException Maven / Gradle / Ivy
package de.uni.freiburg.iig.telematik.jagal.graph.exception;
import de.uni.freiburg.iig.telematik.jagal.graph.Edge;
import de.uni.freiburg.iig.telematik.jagal.graph.Vertex;
import de.uni.freiburg.iig.telematik.jagal.graph.abstr.AbstractGraph;
public class VertexNotFoundException extends GraphException {
private static final long serialVersionUID = -2531063172019479258L;
private String messagePart = " does not contain vertex ";
private String vertexName;
public , E extends Edge, U> VertexNotFoundException(String vertexName, AbstractGraph graph){
super(graph.getName());
this.vertexName = vertexName;
}
public , E extends Edge, U> VertexNotFoundException(String vertexName, String vertexDescription, AbstractGraph graph){
super(graph.getName());
this.vertexName = vertexName;
messagePart = " does not contain "+vertexDescription+" ";
}
public String getMessage(){
return getGraphName()+messagePart+getVertex();
}
public String getVertex(){
return vertexName;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy