com.github.hal4j.resources.MissingLinkException Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of hal4j-api Show documentation
Show all versions of hal4j-api Show documentation
HAL API specification for Java
package com.github.hal4j.resources;
import java.net.URI;
import java.util.function.Supplier;
public class MissingLinkException extends RuntimeException {
public MissingLinkException(String rel) {
super("Link does not exist or is not accessible: " + rel);
}
public static Supplier missingLink(String rel) {
return () -> new MissingLinkException(rel);
}
public static Supplier missingLink(URI rel) {
return () -> new MissingLinkException(String.valueOf(rel));
}
}