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

dev.jbang.cli.ResourceNotFoundException Maven / Gradle / Ivy

The newest version!
package dev.jbang.cli;

/**
 * Used when something could not be found.
 */
public class ResourceNotFoundException extends RuntimeException {

	private static final long serialVersionUID = 1L;

	String resource;

	public ResourceNotFoundException(String resource, String message, Throwable cause) {
		super(message, cause);
		this.resource = resource;
	}

	public ResourceNotFoundException(String resource, String message) {
		this(resource, message, null);
	}

	public String getResourceDescription() {
		return resource;
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy