X-Git-Url: https://git.pterodactylus.net/?p=WoTNS.git;a=blobdiff_plain;f=src%2Fmain%2Fjava%2Fnet%2Fpterodactylus%2Fwotns%2Ffreenet%2Fwot%2FWebOfTrustConnector.java;h=f56f739c7101cc9719ff99d5ecd24c3f9de06fa0;hp=9b11309e30529e18bf1d93f54bd1362c4e7db962;hb=49fa6f803ae941a0babfb5af4a29671f2cf0d7ed;hpb=0ee2ee385ee5c3591039c23baf57ce1a0871a0f5 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();