Minor refactor, bump to version 0.0.3

This commit is contained in:
Jacob Stopak 2019-04-23 15:57:57 -07:00
parent b5baab7092
commit 8463567986
2 changed files with 3 additions and 9 deletions

View File

@ -10,7 +10,7 @@
</parent> </parent>
<groupId>com.baeldung</groupId> <groupId>com.baeldung</groupId>
<artifactId>pass-exception-to-client-json-spring-boot</artifactId> <artifactId>pass-exception-to-client-json-spring-boot</artifactId>
<version>0.0.2-SNAPSHOT</version> <version>0.0.3-SNAPSHOT</version>
<name>pass-exception-to-client-json-spring-boot</name> <name>pass-exception-to-client-json-spring-boot</name>
<description>Baeldung article code on how to pass exceptions to client in JSON format using Spring Boot</description> <description>Baeldung article code on how to pass exceptions to client in JSON format using Spring Boot</description>

View File

@ -7,14 +7,8 @@ import org.springframework.web.bind.annotation.GetMapping;
public class MainController { public class MainController {
@GetMapping("/") @GetMapping("/")
public String index() throws CustomException { public void index() throws CustomException {
if (true) {
throw new CustomException(); throw new CustomException();
} }
return "index";
}
} }