RawChannelDataListener: Checked exceptions for write() and close()
|Category:||RawChannel||Estimated time:||2.00 h|
|Target version:||1.2.0||Spent time:||2.00 h|
When transfering files, it may happen that the write-action on the receiver side fails (due to underlying IO-Exception when f.i. writing to disk). Same when closing the raw channel via close().
SIMON currently does not offer error-handling for this. You may throw a runtime exception, but this will kill the worker-thread and may also kill the session.
It would be better to have a checked exception like "RawChannelException" or something similar.
So, write() and close() in RawChannelDataListener should be extended by f.i. "throws RawChannelException"
This will break the API. So this change will not happen in 1.1x, but 1.2.x development branch.