summaryrefslogtreecommitdiffstats
path: root/cps-ri/src
diff options
context:
space:
mode:
authorToine Siebelink <toine.siebelink@est.tech>2020-12-07 14:04:21 +0000
committerGerrit Code Review <gerrit@onap.org>2020-12-07 14:04:21 +0000
commit4e807e562c7fee9cd07f7dbd27263100c87c07ec (patch)
tree111ec51f127d3afbabc0769198d766569b809ae7 /cps-ri/src
parenta3e34cb6e3aa1c670f1d13eb849d2be20a192e8e (diff)
parent3057854ce8807de7515c9b85a9a9f9d9742f78e5 (diff)
Merge "CPS Exception handling - extending the CPSValidationException"
Diffstat (limited to 'cps-ri/src')
-rwxr-xr-xcps-ri/src/main/java/org/onap/cps/spi/repository/DataspaceRepository.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/cps-ri/src/main/java/org/onap/cps/spi/repository/DataspaceRepository.java b/cps-ri/src/main/java/org/onap/cps/spi/repository/DataspaceRepository.java
index daf0b716b7..4b649167f3 100755
--- a/cps-ri/src/main/java/org/onap/cps/spi/repository/DataspaceRepository.java
+++ b/cps-ri/src/main/java/org/onap/cps/spi/repository/DataspaceRepository.java
@@ -21,7 +21,7 @@ package org.onap.cps.spi.repository;
import java.util.Optional;
import javax.validation.constraints.NotNull;
-import org.onap.cps.exceptions.CpsNotFoundException;
+import org.onap.cps.exceptions.DataspaceNotFoundException;
import org.onap.cps.spi.entities.Dataspace;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;
@@ -34,6 +34,6 @@ public interface DataspaceRepository extends JpaRepository<Dataspace, Integer> {
default Dataspace getByName(@NotNull String name) {
return findByName(name).orElseThrow(
- () -> new CpsNotFoundException("Not Found", "Dataspace " + name + " does not exist."));
+ () -> new DataspaceNotFoundException("Dataspace " + name + " does not exist."));
}
} \ No newline at end of file