create line validation exception handling