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

com.github.hal4j.resources.MissingLinkException Maven / Gradle / Ivy

There is a newer version: 1.1.0
Show newest version
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));
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy