Add unitMin and unitMax
Add exception type for data error