Skip to content

Commit 8463567

Browse files
Minor refactor, bump to version 0.0.3
1 parent b5baab7 commit 8463567

File tree

2 files changed

+3
-9
lines changed
  • spring-boot-exceptions/pass-exception-to-client-json-spring-boot

2 files changed

+3
-9
lines changed

spring-boot-exceptions/pass-exception-to-client-json-spring-boot/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
</parent>
1111
<groupId>com.baeldung</groupId>
1212
<artifactId>pass-exception-to-client-json-spring-boot</artifactId>
13-
<version>0.0.2-SNAPSHOT</version>
13+
<version>0.0.3-SNAPSHOT</version>
1414
<name>pass-exception-to-client-json-spring-boot</name>
1515
<description>Baeldung article code on how to pass exceptions to client in JSON format using Spring Boot</description>
1616

spring-boot-exceptions/pass-exception-to-client-json-spring-boot/src/main/java/com/baeldung/passexceptiontoclientjsonspringboot/MainController.java

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,8 @@
77
public class MainController {
88

99
@GetMapping("/")
10-
public String index() throws CustomException {
11-
12-
if (true) {
13-
throw new CustomException();
14-
}
15-
16-
return "index";
17-
10+
public void index() throws CustomException {
11+
throw new CustomException();
1812
}
1913

2014
}

0 commit comments

Comments
 (0)