Search This Blog

Thursday, July 3, 2014

Validation in the Class

I can implement a validation in the class that throws an exception to the object.  I need to do some work to send and receive the right messaging - right now I get a "State Error: message" or "Instance of Validation Error".  An option is to send an event instead of the exception.  
I am unsure of the trade offs of sending the message from the class to the object in an event or as an exception.

No comments:

Post a Comment