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:
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