As my projects gets bigger, it becomes hard to find the spot where a message reading operation fails. For debug purposes, it could be helpful to throw an exception so IDEs can help debugging the code.
I think a static bool in the Message class like throwReadException could enable debug builds to throw exceptions while leaving release builds untouched.
As my projects gets bigger, it becomes hard to find the spot where a message reading operation fails. For debug purposes, it could be helpful to throw an exception so IDEs can help debugging the code.
I think a static
boolin the Message class likethrowReadExceptioncould enable debug builds to throw exceptions while leaving release builds untouched.