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/TagService.java

    r9919 r10505  
    11package fr.mael.jiwigo.service;
    22
    3 import java.io.IOException;
    43import java.util.List;
    54
    65import fr.mael.jiwigo.om.Image;
    76import fr.mael.jiwigo.om.Tag;
    8 import fr.mael.jiwigo.transverse.exception.ProxyAuthenticationException;
     7import fr.mael.jiwigo.transverse.exception.JiwigoException;
    98
    109public interface TagService {
     
    1312     * Lists all tags
    1413     * @return le list of tags
    15      * @throws IOException
    16      * @throws ProxyAuthenticationException
     14     * @throws JiwigoException
    1715     */
    18     public List<Tag> list() throws IOException, ProxyAuthenticationException;
     16    public List<Tag> list() throws JiwigoException;
    1917
    2018    /**
     
    2220     * @param nom name of the tag
    2321     * @return true if the tag is created
    24      * @throws IOException
    25      * @throws ProxyAuthenticationException
     22     * @throws JiwigoException
    2623     */
    27     public boolean create(String nom) throws IOException, ProxyAuthenticationException;
     24    public boolean create(String nom) throws JiwigoException;
    2825
    2926    /**
     
    3128     * @param image the image to check
    3229     * @return the list of tags
    33      * @throws IOException
    34      * @throws ProxyAuthenticationException
     30     * @throws JiwigoException
    3531     */
    36     public List<Tag> tagsForImage(Image image) throws IOException, ProxyAuthenticationException;
     32    public List<Tag> tagsForImage(Image image) throws JiwigoException;
    3733}
Note: See TracChangeset for help on using the changeset viewer.