Best Practice - Validating Input In Simple GUI Application?

Posted by Alex on Stack Overflow See other posts from Stack Overflow or by Alex
Published on 2010-03-22T00:35:17Z Indexed on 2010/03/22 0:41 UTC
Read the original article Hit count: 328

Filed under:
|
|

I'm writing a GUI app with wxwidgets in C++ for one of my programming classes. We have to validate input and throw custom exceptions if it doesn't meet certain conditions. My question is, what is best practice when it comes to this? Should I write a seperate function that checks for errors, and have my event handler's call that function? Or should I do my error-checking in my event handlers? Or does it really matter?

Thanks!

© Stack Overflow or respective owner

Related posts about c++

Related posts about wxwidgets