exception handling in condition evaluation