@ResponseStatus(value = HttpStatus.NOT_FOUND, reason = "Spittle Not Found") public class SpittleNotFoundException extends RuntimeException {
@ExceptionHandler(DuplicateSpittleException.class) public String handleNotFound() { return "error/duplicate"; }
@ControllerAdvice public class AppWideExceptionHandler { @ExceptionHandler(DuplicateSpittleException.class) public String handleNotFound() { return "error/duplicate"; }