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

    r9919 r10505  
    55
    66import fr.mael.jiwigo.om.Category;
     7import fr.mael.jiwigo.transverse.exception.JiwigoException;
    78import fr.mael.jiwigo.transverse.exception.ProxyAuthenticationException;
    89
     
    1516     * @throws ProxyAuthenticationException
    1617     */
    17     public List<Category> list(boolean recursive) throws IOException, ProxyAuthenticationException;
     18    public List<Category> list(boolean recursive) throws JiwigoException;
    1819
    1920    /**
     
    2324     * @throws ProxyAuthenticationException
    2425     */
    25     public List<Category> makeTree() throws IOException, ProxyAuthenticationException;
     26    public List<Category> makeTree() throws JiwigoException;
    2627
    2728    /**
     
    3233     * @throws ProxyAuthenticationException
    3334     */
    34     public boolean create(String nom, Integer parent) throws ProxyAuthenticationException;
     35    public boolean create(String nom, Integer parent) throws JiwigoException;
    3536
    3637    /**
     
    4041     * @throws ProxyAuthenticationException
    4142     */
    42     public boolean create(String nom) throws ProxyAuthenticationException;
     43    public boolean create(String nom) throws JiwigoException;
    4344}
Note: See TracChangeset for help on using the changeset viewer.