Revision b0236d96
Added by Andreas Kohlbecker almost 8 years ago
cdmlib-remote/src/main/java/eu/etaxonomy/cdm/remote/controller/BaseController.java | ||
---|---|---|
45 | 45 |
import eu.etaxonomy.cdm.model.reference.INomenclaturalReference; |
46 | 46 |
import eu.etaxonomy.cdm.remote.controller.util.PagerParameters; |
47 | 47 |
import eu.etaxonomy.cdm.remote.editor.UUIDPropertyEditor; |
48 |
import eu.etaxonomy.cdm.remote.exception.NoRecordsMatchException; |
|
49 | 48 |
|
50 | 49 |
/** |
51 | 50 |
* based on org.cateproject.controller.common |
... | ... | |
285 | 284 |
CDM_BASE cdmBaseObject = service.load(uuid, pathProperties); |
286 | 285 |
if (cdmBaseObject == null) { |
287 | 286 |
HttpStatusMessage.UUID_NOT_FOUND.send(response); |
288 |
throw new NoRecordsMatchException("No instance found for UUID " + uuid.toString()); |
|
289 | 287 |
} |
290 | 288 |
return cdmBaseObject; |
291 | 289 |
} |
Also available in: Unified diff
#5859 avoiding pollution of the log file with stack traces