Ignore:
Timestamp:
08/12/14 14:59:10 (10 years ago)
Author:
olhsha@mpi.nl
Message:

Fixed exception that have appeared while unit-testing

File:
1 edited

Legend:

Unmodified
Added
Removed
  • ComponentRegistry/trunk/ComponentRegistry/src/main/java/clarin/cmdi/componentregistry/impl/database/ComponentRegistryDbImpl.java

    r5549 r5550  
    284284                    return comment;
    285285                } 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);
    288287                }
    289288            } catch (DataAccessException ex) {
     
    323322                    return comment;
    324323                } 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);
    329325                }
    330326            } catch (DataAccessException ex) {
     
    809805
    810806    @Override
    811     public void deleteComment(String commentId) throws IOException, ComponentRegistryException,
     807    public void deleteComment(String commentId) throws IOException,
    812808            UserUnauthorizedException, DeleteFailedException, ItemNotFoundException {
    813809        try {
     
    822818            } else {
    823819                // 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");
    825821            }
    826822        } catch (DataAccessException ex) {
Note: See TracChangeset for help on using the changeset viewer.