Throwing user exception in streambuf derived class caught by std::lib


The subject says it all, I have a class derived from std::streambuf.
Upon read error from the source (in this case a tcp socket) in
streambuf::underflow, I want to throw an exception. However, the
exception I throw seems to be caught by the internal std library which
results in my program continuing to run instead of aborting with my
exception message.

Is there any way to prevent the std library from catching my
exceptions ?

Thx !