Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Change DaggerSuperficialValidation to throw rather than return a bool…
…ean. This CL changes DaggerSuperficialValidation to throw a ValidationException when resolution fails rather than returning a boolean. This has a few benefits: 1. It allows us to collect more information when validation fails by storing it in the exception. 2. We already collect this information for "unexpected" exceptions during DaggerSuperficialValidation, so we can reuse that same exception for "expected" exceptions (i.e. those thrown by us). Note that, currently, we don't do anything with the additional information contained in the ValidationException, but we'll eventually pass that information to XProcessing to give better error messages for the deferred elements. RELNOTES=N/A PiperOrigin-RevId: 416346969
- Loading branch information