Minor refactor, bump to version 0.0.3
This commit is contained in:
parent
b5baab7092
commit
8463567986
|
@ -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>
|
||||||
|
|
||||||
|
|
|
@ -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 {
|
||||||
|
throw new CustomException();
|
||||||
if (true) {
|
|
||||||
throw new CustomException();
|
|
||||||
}
|
|
||||||
|
|
||||||
return "index";
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
Loading…
Reference in New Issue