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

uk.co.autotrader.traverson.exception.UnknownRelException Maven / Gradle / Ivy

Go to download

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));
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy