Socks5Client: Throw SmackException instead of IOExecption

So that we can wrap the original exception within the
SmackException. It's not possible to wrap it into the IOException
because of the used min Android API level.
This commit is contained in:
Florian Schmaus 2016-02-10 12:36:38 +01:00
parent 263578fd63
commit 4fb3630896
1 changed files with 2 additions and 2 deletions

View File

@ -125,8 +125,8 @@ class Socks5Client {
}
}
// throw generic IO exception if unexpected exception was thrown
throw new IOException("Error while connection to SOCKS5 proxy");
// throw generic Smack exception if unexpected exception was thrown
throw new SmackException("Error while connecting to SOCKS5 proxy", e);
}
}