Creation of base template (#1)
* Sample template created * added findByName functionality for item * Solve Cors errors and inhibit DefaultExposure * changed project structure * Added frontend
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
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);
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user