* Sample template created * added findByName functionality for item * Solve Cors errors and inhibit DefaultExposure * changed project structure * Added frontend
24 lines
544 B
Java
24 lines
544 B
Java
package whattocook.exception;
|
|
|
|
import org.springframework.http.HttpStatus;
|
|
import org.springframework.web.bind.annotation.ResponseStatus;
|
|
|
|
@ResponseStatus(HttpStatus.NOT_FOUND)
|
|
public class ItemNotFoundException extends RuntimeException {
|
|
|
|
private static final long serialVersionUID = 1L;
|
|
|
|
public ItemNotFoundException(){
|
|
super();
|
|
}
|
|
|
|
public ItemNotFoundException(String message) {
|
|
super(message);
|
|
}
|
|
|
|
public ItemNotFoundException(String message, Throwable cause) {
|
|
super(message, cause);
|
|
}
|
|
|
|
}
|