Changeset 5550 for ComponentRegistry/trunk/ComponentRegistry/src/main/java/clarin/cmdi/componentregistry/impl/database/ComponentRegistryDbImpl.java
- Timestamp:
- 08/12/14 14:59:10 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
ComponentRegistry/trunk/ComponentRegistry/src/main/java/clarin/cmdi/componentregistry/impl/database/ComponentRegistryDbImpl.java
r5549 r5550 284 284 return comment; 285 285 } else { 286 // Comment exists in DB, but profile is not in this registry 287 throw new ComponentRegistryException("Comment " + commentId + " cannot be found in specified registry"); 286 throw new ComponentRegistryException("Comment " + commentId + "for the profile "+profileId); 288 287 } 289 288 } catch (DataAccessException ex) { … … 323 322 return comment; 324 323 } else { 325 // Comment does not exists in DB or component is not in this 326 // registry 327 throw new ComponentRegistryException("Comment " + commentId 328 + " cannot be found in specified registry for specified component"); 324 throw new ComponentRegistryException("Comment " + commentId + "for the profile "+componentId); 329 325 } 330 326 } catch (DataAccessException ex) { … … 809 805 810 806 @Override 811 public void deleteComment(String commentId) throws IOException, ComponentRegistryException,807 public void deleteComment(String commentId) throws IOException, 812 808 UserUnauthorizedException, DeleteFailedException, ItemNotFoundException { 813 809 try { … … 822 818 } else { 823 819 // Comment exists in DB, but component is not in this registry 824 throw new ComponentRegistryException("Comment " + commentId + " cannot be found in specified registry");820 throw new ItemNotFoundException("Comment " + commentId + " cannot be found in specified registry"); 825 821 } 826 822 } catch (DataAccessException ex) {
Note: See TracChangeset
for help on using the changeset viewer.