def report_validation_error(self, message):
    raise ValidationError(self.address, message)
Raises a properly identified validation error.
dataset/ETHPy150Open pantsbuild/pants/src/python/pants/engine/exp/struct.py/Struct.report_validation_error