Throw exception on validate error