dev.jbang.cli.ResourceNotFoundException Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jbang-cli Show documentation
Show all versions of jbang-cli Show documentation
JBang Command Line Interface
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;
}
}