RestController throws different exceptions for other errors
authorKai Moritz <kai@juplo.de>
Tue, 14 Jan 2020 23:45:15 +0000 (00:45 +0100)
committerKai Moritz <kai@juplo.de>
Thu, 16 Jan 2020 10:18:03 +0000 (11:18 +0100)
commitab2e91f650140216087203aa7f77b9d356bd6a6f
tree2ac5a49aaccc71b4444b5499fcb5e01cfede7504
parentd254e8fa52ab3897c7d7a95e36d9b93635d7d7c6
RestController throws different exceptions for other errors

* Goal: distinguish between errors, that occure during the fetching of the
  data and errors, that may occure elswhere in RemoteController
* Added an unit-test, that verifies the distinction
* Fixed the behavior of RestController accordingly
src/main/java/de/juplo/demo/RestController.java
src/test/java/de/juplo/demo/RestControllerTest.java