Ignore:
Timestamp:
Apr 20, 2011, 5:17:02 AM (13 years ago)
Author:
anthony43
Message:

huge refactoring to introduce JiwigoException : a generic exception encapsulating low level exceptions (IOException, ProxyAuthentication, etc...)
The aim is to have, on the consumer side, just one exception to catch them all.
this refactoring may need a code review to check the changes.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/jiwigo-ws-api/src/main/java/fr/mael/jiwigo/service/impl/CommentServiceImpl.java

    r9919 r10505  
    1010import fr.mael.jiwigo.om.Comment;
    1111import fr.mael.jiwigo.service.CommentService;
     12import fr.mael.jiwigo.transverse.exception.JiwigoException;
    1213import fr.mael.jiwigo.transverse.exception.ProxyAuthenticationException;
    1314
     
    4344     * @throws ProxyAuthenticationException
    4445     */
    45     public List<Comment> list(Integer imageId) throws IOException, ProxyAuthenticationException {
     46    public List<Comment> list(Integer imageId) throws JiwigoException {
    4647        return dao.list(imageId);
    4748    }
     
    5657     * @throws ProxyAuthenticationException
    5758     */
    58     public boolean create(String content, Integer imageId, String auteur) throws IOException,
    59             ProxyAuthenticationException {
     59    public boolean create(String content, Integer imageId, String auteur) throws JiwigoException {
    6060        Comment comment = new Comment();
    6161        comment.setContent(content);
Note: See TracChangeset for help on using the changeset viewer.