Revision 10030
Added by Jing Tao about 8 years ago
src/edu/ucsb/nceas/metacat/dataone/D1NodeService.java | ||
---|---|---|
1172 | 1172 |
} catch (Exception e) { |
1173 | 1173 |
// convert Hazelcast RuntimeException to NotFound |
1174 | 1174 |
logMetacat.error("An error occurred while getting system metadata for identifier " + |
1175 |
pid.getValue() + ". The error message was: " + e.getMessage()); |
|
1176 |
throw new NotFound("1800", "No record found for " + pidStr);
|
|
1175 |
pid.getValue() + ". The error message was: " + e.getMessage(), e);
|
|
1176 |
throw new ServiceFailure("1090", "Can't get the system metadata for " + pidStr+ " since "+e.getMessage());
|
|
1177 | 1177 |
|
1178 | 1178 |
} |
1179 | 1179 |
|
Also available in: Unified diff
Change an exception to more appropriate exception.