mirror of
https://github.com/vanitasvitae/Smack.git
synced 2025-09-10 17:49:38 +02:00
Make SmackException abstract
This commit is contained in:
parent
7e76712c46
commit
394f3d133a
3 changed files with 8 additions and 8 deletions
|
@ -198,10 +198,10 @@ public class IncomingFileTransfer extends FileTransfer {
|
|||
if (cause instanceof SmackException) {
|
||||
throw (SmackException) cause;
|
||||
}
|
||||
throw new SmackException("Error in execution", e);
|
||||
throw new SmackException.SmackWrappedException("Error in execution", e);
|
||||
}
|
||||
catch (TimeoutException e) {
|
||||
throw new SmackException("Request timed out", e);
|
||||
throw new SmackException.SmackWrappedException("Request timed out", e);
|
||||
}
|
||||
finally {
|
||||
streamNegotiatorTask.cancel(true);
|
||||
|
|
|
@ -56,10 +56,10 @@ public class Socks5TransferNegotiator extends StreamNegotiator {
|
|||
return this.manager.establishSession(target, streamID).getOutputStream();
|
||||
}
|
||||
catch (IOException e) {
|
||||
throw new SmackException("error establishing SOCKS5 Bytestream", e);
|
||||
throw new SmackException.SmackWrappedException("error establishing SOCKS5 Bytestream", e);
|
||||
}
|
||||
catch (InterruptedException e) {
|
||||
throw new SmackException("error establishing SOCKS5 Bytestream", e);
|
||||
throw new SmackException.SmackWrappedException("error establishing SOCKS5 Bytestream", e);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -109,7 +109,7 @@ public class Socks5TransferNegotiator extends StreamNegotiator {
|
|||
return stream;
|
||||
}
|
||||
catch (IOException e) {
|
||||
throw new SmackException("Error establishing input stream", e);
|
||||
throw new SmackException.SmackWrappedException("Error establishing input stream", e);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue