mirror of
https://github.com/vanitasvitae/Smack.git
synced 2025-12-09 12:31:08 +01:00
Introduce SmackMessageException
This commit is contained in:
parent
b51a6c54e8
commit
7fce6b5a98
13 changed files with 76 additions and 46 deletions
|
|
@ -260,7 +260,7 @@ public final class Socks5TestProxy {
|
|||
// first byte is version should be 5
|
||||
int b = in.read();
|
||||
if (b != 5) {
|
||||
throw new SmackException("Only SOCKS5 supported");
|
||||
throw new SmackException.SmackMessageException("Only SOCKS5 supported");
|
||||
}
|
||||
|
||||
// second byte number of authentication methods supported
|
||||
|
|
@ -286,7 +286,7 @@ public final class Socks5TestProxy {
|
|||
authMethodSelectionResponse[1] = (byte) 0xFF; // no acceptable methods
|
||||
out.write(authMethodSelectionResponse);
|
||||
out.flush();
|
||||
throw new SmackException("Authentication method not supported");
|
||||
throw new SmackException.SmackMessageException("Authentication method not supported");
|
||||
}
|
||||
|
||||
authMethodSelectionResponse[1] = (byte) 0x00; // no-authentication method
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue