Yes, this interface sucks. But it has to suck because iostream sucks - these exception flags are implementation-defined (incompatible between sstreams, fstreams, etc) so I can't set them myself in `getIoLimitGroupId()`.

I wish I knew something better than iostream and reimplementing iostream functionality by hand.