mirror of
https://github.com/vanitasvitae/Smack.git
synced 2024-11-22 20:12:07 +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:
parent
263578fd63
commit
4fb3630896
1 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue