Files
EIST-Teamprojekt/backend/src/main/whattocook/exception/ItemNotFoundException.java
cato cb74fe133c Creation of base template (#1)
* Sample template created

* added findByName functionality for item

* Solve Cors errors and inhibit DefaultExposure

* changed project structure

* Added frontend
2022-06-01 01:36:40 +02:00

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);
}
}