X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=src%2Fnet%2Fpterodactylus%2Ffcp%2Fhighlevel%2FHighLevelClient.java;h=14aa5f354f7ebbdde69a21e0931f717ab08f865d;hb=72fa147608d530a273c8165d2036e6fc1b8511a1;hp=e263454b6f0e38fd3f4a192a47f05133ad34d174;hpb=dca50466338d343fe4acb888554d8b11a8de0385;p=jFCPlib.git diff --git a/src/net/pterodactylus/fcp/highlevel/HighLevelClient.java b/src/net/pterodactylus/fcp/highlevel/HighLevelClient.java index e263454..14aa5f3 100644 --- a/src/net/pterodactylus/fcp/highlevel/HighLevelClient.java +++ b/src/net/pterodactylus/fcp/highlevel/HighLevelClient.java @@ -533,13 +533,13 @@ public class HighLevelClient { * Checks whether the client is already connected and throws an exception if * it is not. * - * @throws HighLevelException + * @throws NotConnectedException * if the client is not connected */ - private void checkConnection() throws HighLevelException { + private void checkConnection() throws NotConnectedException { synchronized (this) { if (fcpConnection == null) { - throw new HighLevelException("client is not connected"); + throw new NotConnectedException("client is not connected"); } } }