Text this: Handling errors in C++