pass document instance to validate exception