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

    r10494 r10505  
    88import fr.mael.jiwigo.om.Image;
    99import fr.mael.jiwigo.transverse.exception.FileAlreadyExistsException;
     10import fr.mael.jiwigo.transverse.exception.JiwigoException;
    1011import fr.mael.jiwigo.transverse.exception.ProxyAuthenticationException;
    1112import fr.mael.jiwigo.transverse.exception.WrongChunkSizeException;
     
    2021     * @throws ProxyAuthenticationException
    2122     */
    22     public List<Image> listByCategory(Integer categoryId, boolean rafraichir) throws IOException,
    23             ProxyAuthenticationException;
     23    public List<Image> listByCategory(Integer categoryId, boolean rafraichir) throws JiwigoException;
    2424
    2525    /**
     
    3535     * @throws FileAlreadyExistsException
    3636     * @throws NoSuchAlgorithmException
     37     * @throws JiwigoException
    3738     * @throws Exception
    3839     */
    3940    public boolean create(String filePath, Integer idCategory, Integer originalWidth, Integer originalHeight,
    4041            Double chunckSize, Integer privacyLevel) throws IOException, NoSuchAlgorithmException,
    41             FileAlreadyExistsException, ProxyAuthenticationException, WrongChunkSizeException;
     42            FileAlreadyExistsException, ProxyAuthenticationException, WrongChunkSizeException,
     43            JiwigoException;
    4244
    4345    /**
     
    4951     * @throws ProxyAuthenticationException
    5052     */
    51     public boolean addTags(Image image, String tagId) throws IOException, ProxyAuthenticationException;
     53    public boolean addTags(Image image, String tagId) throws JiwigoException;
    5254
    5355    /**
     
    5860     * @throws ProxyAuthenticationException
    5961     */
    60     public List<Image> search(String queryString) throws IOException, ProxyAuthenticationException;
     62    public List<Image> search(String queryString) throws JiwigoException;
    6163
    6264    /**
     
    6870     * @param title
    6971     * @throws IOException
     72     * @throws JiwigoException
    7073     */
    71     public void addSimple(File file, Integer category, String title) throws IOException;
     74    public void addSimple(File file, Integer category, String title) throws JiwigoException;
    7275
    7376}
Note: See TracChangeset for help on using the changeset viewer.