From: David ‘Bombe’ Roden Date: Fri, 16 Sep 2011 09:10:00 +0000 (+0200) Subject: Throw better suited exception. X-Git-Tag: 0.0.3^2~5 X-Git-Url: https://git.pterodactylus.net/?p=WoTNS.git;a=commitdiff_plain;h=49fa6f803ae941a0babfb5af4a29671f2cf0d7ed;hp=0ee2ee385ee5c3591039c23baf57ce1a0871a0f5 Throw better suited exception. --- diff --git a/src/main/java/net/pterodactylus/wotns/freenet/wot/WebOfTrustConnector.java b/src/main/java/net/pterodactylus/wotns/freenet/wot/WebOfTrustConnector.java index 9b11309..f56f739 100644 --- a/src/main/java/net/pterodactylus/wotns/freenet/wot/WebOfTrustConnector.java +++ b/src/main/java/net/pterodactylus/wotns/freenet/wot/WebOfTrustConnector.java @@ -114,10 +114,10 @@ public class WebOfTrustConnector implements ConnectorListener { * @param ownIdentity * The own identity * @return All trusted identities - * @throws PluginException + * @throws WebOfTrustException * if an error occured talking to the Web of Trust plugin */ - public Set loadTrustedIdentities(OwnIdentity ownIdentity) throws PluginException { + public Set loadTrustedIdentities(OwnIdentity ownIdentity) throws WebOfTrustException { 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 - * @throws PluginException + * @throws WebOfTrustException * if an error occured talking to the Web of Trust plugin */ - public Set loadTrustedIdentities(OwnIdentity ownIdentity, String context) throws PluginException { + public Set 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();