abstracted a more general validation exception