Errors

All read/write tool methods in the stream tool can report the following errors back.

TimeoutExecutionError

The operation timed out.

StreamNotOpenExecutionError

Reported when trying to read/write to a stream that is not yet open.

OperationNotSupportedError

If you try to write to a stream that does not support writing (e.g. a file opened in read mode) - or reading from a stream that does not support reading.