Original Post
I am currently slowly starting to develop a bunch custom made libraries and classes. The first thing I was thinking about was to create an Error object, which I could use when throwing an exception. So, instead of doing throw 0; I would do throw CError(100, "Error code 100");
But, is this actually possible when throwing exceptions, and to what things do I need to pay attention to? I was thinking of storing the following data:
-Earth is 98% full. Please delete anybody you can.
long lErrorNumber; char szErrorText[512]; // 512 chars is enough for error msg imhoToolmaker
-Earth is 98% full. Please delete anybody you can.