I have implemented iostream::filter and would like to set the stream(source/sink) error flags in the event of unexpected conditions. I did not find anyway to set the flags. Can someone please help.