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/transverse/session/SessionManager.java

    r9919 r10505  
    44import java.io.UnsupportedEncodingException;
    55
     6import org.apache.http.client.ClientProtocolException;
    67import org.w3c.dom.Document;
    78
     9import fr.mael.jiwigo.transverse.exception.JiwigoException;
    810import fr.mael.jiwigo.transverse.exception.ProxyAuthenticationException;
    911
     
    1315     *
    1416     * @return 0 if Ok, 1 if not Ok (reason not specified), 2 if proxy error
     17     * @throws JiwigoException
    1518     *
    1619     *
    1720     */
    18     public int processLogin();
     21    public int processLogin() throws JiwigoException;
    1922
    2023    /**
     
    2528     * @throws UnsupportedEncodingException
    2629     * @throws ProxyAuthenticationException
     30     * @throws JiwigoException
     31     * @throws IOException
     32     * @throws ClientProtocolException
    2733     */
    2834    public String executeReturnString(String methode, String... parametres) throws UnsupportedEncodingException,
    29             ProxyAuthenticationException;
     35            ProxyAuthenticationException, JiwigoException, ClientProtocolException, IOException;
    3036
    3137    /**
     
    3642     * @throws IOException
    3743     * @throws ProxyAuthenticationException
     44     * @throws JiwigoException
    3845     */
    39     public Document executeReturnDocument(String methode, String... parametres) throws IOException,
    40             ProxyAuthenticationException;
     46    public Document executeReturnDocument(String methode, String... parametres) throws JiwigoException;
    4147
    4248    /**
     
    4652     * @throws ProxyAuthenticationException
    4753     */
    48     public Document executeReturnDocument(String methode) throws ProxyAuthenticationException;
     54    public Document executeReturnDocument(String methode) throws JiwigoException;
    4955
    5056    /**
Note: See TracChangeset for help on using the changeset viewer.