net.yadaframework.web.exceptions.YadaHttpNotFoundException Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of yadaweb Show documentation
Show all versions of yadaweb Show documentation
Some useful tasks for the Yada Framework
package net.yadaframework.web.exceptions;
import org.springframework.http.HttpStatus;
import org.springframework.web.bind.annotation.ResponseStatus;
/**
* Throw this exception to generate a 404 HTTP return code
*
*/
@ResponseStatus(value=HttpStatus.NOT_FOUND) // 404
public class YadaHttpNotFoundException extends RuntimeException {
private static final long serialVersionUID = -357253456084830193L;
public YadaHttpNotFoundException() {
}
}