Throw an exception on the Nth failure.
void fail(); » more...
more...
Set an error code on the Nth failure.
bool fail( error_code& ec); » more...