Forcing a check on properties before accepting them

This could be better (as in it could catch the exception and report the line that the error occurs), but I'm lazy and your code is far, far more complicated than I remember.