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

    r9919 r10505  
    1111import fr.mael.jiwigo.om.Tag;
    1212import fr.mael.jiwigo.service.TagService;
     13import fr.mael.jiwigo.transverse.exception.JiwigoException;
    1314import fr.mael.jiwigo.transverse.exception.ProxyAuthenticationException;
    1415
     
    4344     * @throws IOException
    4445     * @throws ProxyAuthenticationException
     46     * @throws JiwigoException
    4547     */
    46     public List<Tag> list() throws IOException, ProxyAuthenticationException {
     48    public List<Tag> list() throws JiwigoException {
    4749        return dao.list();
    4850    }
     
    5456     * @throws IOException
    5557     * @throws ProxyAuthenticationException
     58     * @throws JiwigoException
    5659     */
    57     public boolean create(String nom) throws IOException, ProxyAuthenticationException {
     60    public boolean create(String nom) throws JiwigoException {
    5861        Tag tag = new Tag();
    5962        tag.setName(nom);
     
    6770     * @throws IOException
    6871     * @throws ProxyAuthenticationException
     72     * @throws JiwigoException
    6973     */
    70     public List<Tag> tagsForImage(Image image) throws IOException, ProxyAuthenticationException {
     74    public List<Tag> tagsForImage(Image image) throws JiwigoException {
    7175        return dao.tagsForImage(image);
    7276    }
Note: See TracChangeset for help on using the changeset viewer.