1
0
Fork 0
mirror of https://codeberg.org/Mercury-IM/Smack synced 2024-11-25 15:52:06 +01:00

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

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);
}
}