Throw better suited exception.
authorDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Fri, 16 Sep 2011 09:10:00 +0000 (11:10 +0200)
committerDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Fri, 16 Sep 2011 09:10:00 +0000 (11:10 +0200)
src/main/java/net/pterodactylus/wotns/freenet/wot/WebOfTrustConnector.java

index 9b11309..f56f739 100644 (file)
@@ -114,10 +114,10 @@ public class WebOfTrustConnector implements ConnectorListener {
         * @param ownIdentity
         *            The own identity
         * @return All trusted identities
         * @param ownIdentity
         *            The own identity
         * @return All trusted identities
-        * @throws PluginException
+        * @throws WebOfTrustException
         *             if an error occured talking to the Web of Trust plugin
         */
         *             if an error occured talking to the Web of Trust plugin
         */
-       public Set<Identity> loadTrustedIdentities(OwnIdentity ownIdentity) throws PluginException {
+       public Set<Identity> loadTrustedIdentities(OwnIdentity ownIdentity) throws WebOfTrustException {
                return loadTrustedIdentities(ownIdentity, null);
        }
 
                return loadTrustedIdentities(ownIdentity, null);
        }
 
@@ -130,10 +130,10 @@ public class WebOfTrustConnector implements ConnectorListener {
         * @param context
         *            The context to filter, or {@code null}
         * @return All trusted identities
         * @param context
         *            The context to filter, or {@code null}
         * @return All trusted identities
-        * @throws PluginException
+        * @throws WebOfTrustException
         *             if an error occured talking to the Web of Trust plugin
         */
         *             if an error occured talking to the Web of Trust plugin
         */
-       public Set<Identity> loadTrustedIdentities(OwnIdentity ownIdentity, String context) throws PluginException {
+       public Set<Identity> loadTrustedIdentities(OwnIdentity ownIdentity, String context) throws WebOfTrustException {
                @SuppressWarnings("hiding")
                Reply reply = performRequest(SimpleFieldSetConstructor.create().put("Message", "GetIdentitiesByScore").put("TreeOwner", ownIdentity.getId()).put("Selection", "+").put("Context", (context == null) ? "" : context).get());
                SimpleFieldSet fields = reply.getFields();
                @SuppressWarnings("hiding")
                Reply reply = performRequest(SimpleFieldSetConstructor.create().put("Message", "GetIdentitiesByScore").put("TreeOwner", ownIdentity.getId()).put("Selection", "+").put("Context", (context == null) ? "" : context).get());
                SimpleFieldSet fields = reply.getFields();