Currently if writing fails when using a file stream, it throws an exception from the compressor thread, since this is the thread in which the file accessor is used. This, however, makes it difficult to catch the exception in client code.
The following example demonstrates this behaviour by writing to a read_only file stream. An uncaught exception is thrown from the compressor thread.
Currently if writing fails when using a file stream, it throws an exception from the compressor thread, since this is the thread in which the file accessor is used. This, however, makes it difficult to catch the exception in client code.
The following example demonstrates this behaviour by writing to a read_only file stream. An uncaught exception is thrown from the compressor thread.
Output from LLDB: