Code Review
/
nonrtric.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
NONRTRIC - Enrichment Coordinator Service, Changed error codes
[nonrtric.git]
/
enrichment-coordinator-service
/
src
/
main
/
java
/
org
/
oransc
/
enrichment
/
repository
/
InfoJobs.java
diff --git
a/enrichment-coordinator-service/src/main/java/org/oransc/enrichment/repository/InfoJobs.java
b/enrichment-coordinator-service/src/main/java/org/oransc/enrichment/repository/InfoJobs.java
index
52fa1d6
..
7469e08
100644
(file)
--- a/
enrichment-coordinator-service/src/main/java/org/oransc/enrichment/repository/InfoJobs.java
+++ b/
enrichment-coordinator-service/src/main/java/org/oransc/enrichment/repository/InfoJobs.java
@@
-43,6
+43,7
@@
import org.oransc.enrichment.controllers.r1producer.ProducerCallbacks;
import org.oransc.enrichment.exceptions.ServiceException;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.oransc.enrichment.exceptions.ServiceException;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
+import org.springframework.http.HttpStatus;
import org.springframework.util.FileSystemUtils;
/**
import org.springframework.util.FileSystemUtils;
/**
@@
-91,7
+92,7
@@
public class InfoJobs {
public synchronized InfoJob getJob(String id) throws ServiceException {
InfoJob ric = allEiJobs.get(id);
if (ric == null) {
public synchronized InfoJob getJob(String id) throws ServiceException {
InfoJob ric = allEiJobs.get(id);
if (ric == null) {
- throw new ServiceException("Could not find Information job: " + id);
+ throw new ServiceException("Could not find Information job: " + id
, HttpStatus.NOT_FOUND
);
}
return ric;
}
}
return ric;
}