package graph; /** * Runtime exception thrown when a method discovers a negative * weight in a graph that wasn't supposed to have negative weights. */ public class NegativeWeightException extends RuntimeException { public NegativeWeightException() { } public NegativeWeightException(String err) { super(err); } }