How best to use the PropertyLoadException raised from SetPropertyConvert

How best to use the PropertyLoadException raised from SetPropertyConvert

Old forum URL: forums.lhotka.net/forums/t/10462.aspx


Jav posted on Thursday, June 23, 2011

I am trying to test entry of relatively absurd (for US) dates like 27/09/2009.  Set PropertyConvert does raise the PropertyLoadException, but I am not sure where to catch this and display a message to the user.

Right now the behavior appears to be to make no change to the date in the object, and also to leave the wrong date entered in the UI  as is.  I am wondering if it wouldn't be more appropriate to provide a signal to the user that the entered value in the text field has been rejected.  Since the Property is left unaltered, the BusinessRule system would not work either.

Jav

Copyright (c) Marimer LLC