Change to use checked exceptions in rAPP Catalogue 95/5395/1
authorelinuxhenrik <henrik.b.andersson@est.tech>
Thu, 7 Jan 2021 14:42:31 +0000 (15:42 +0100)
committerelinuxhenrik <henrik.b.andersson@est.tech>
Thu, 7 Jan 2021 14:42:39 +0000 (15:42 +0100)
commit7851a89c67279990a6d1b063ca62d49fdcb5be87
treed6c5320385ffd1e4ef7916e5cb0fc82f597b7547
parent1da5c887797ae8cb715ad0b16b388aae18cda948
Change to use checked exceptions in rAPP Catalogue

Add the parameter “unhandledException” with value “true” to the
generator to make the delegated implementation able to handle checked
exceptions.
Change the service's exceptions to be checked and adapt the code
accordingly.

Change-Id: I15cab337826b48d21ae83521d149f177d8dce00d
Issue-ID: NONRTRIC-373
Signed-off-by: elinuxhenrik <henrik.b.andersson@est.tech>
r-app-catalogue/pom.xml
r-app-catalogue/src/main/java/org/oransc/rappcatalogue/api/GeneralRappCatalogueControllerAdvisor.java
r-app-catalogue/src/main/java/org/oransc/rappcatalogue/api/ServicesApiDelegateImpl.java
r-app-catalogue/src/main/java/org/oransc/rappcatalogue/exception/HeaderException.java
r-app-catalogue/src/main/java/org/oransc/rappcatalogue/exception/InvalidServiceException.java
r-app-catalogue/src/main/java/org/oransc/rappcatalogue/exception/ServiceNotFoundException.java
r-app-catalogue/src/test/java/org/oransc/rappcatalogue/api/ServicesApiDelegateImplTest.java