Minor refactor, bump to version 0.0.3
This commit is contained in:
parent
b5baab7092
commit
8463567986
|
@ -10,7 +10,7 @@
|
|||
</parent>
|
||||
<groupId>com.baeldung</groupId>
|
||||
<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>
|
||||
<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 {
|
||||
|
||||
@GetMapping("/")
|
||||
public String index() throws CustomException {
|
||||
|
||||
if (true) {
|
||||
throw new CustomException();
|
||||
}
|
||||
|
||||
return "index";
|
||||
|
||||
public void index() throws CustomException {
|
||||
throw new CustomException();
|
||||
}
|
||||
|
||||
}
|
Loading…
Reference in New Issue