uk.co.autotrader.traverson.exception.UnknownRelException Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of traverson4j-core Show documentation
Show all versions of traverson4j-core Show documentation
The kernel of traverson4j. This provides the main API for a client to traverse a Hypermedia REST service
The newest version!
package uk.co.autotrader.traverson.exception;
import java.util.Map;
import java.util.SortedSet;
public class UnknownRelException extends IncompleteTraversalException {
public UnknownRelException(String rel) {
super(String.format("Rel %s not found", rel));
}
public UnknownRelException(String rel, SortedSet knownRels) {
super(String.format("Rel %s not in the following %s", rel, knownRels));
}
public UnknownRelException(String rel, Map> knownRels) {
super(String.format("Rel %s not found in %s", rel, knownRels));
}
}