code: def validate_and_throw_exception(self, correlation_id, value, strict = False):
          
          results = self.validate(value)
          ValidationException.throw_exception_if_needed(correlation_id, results, strict)
docs: Validates the given value and throws a [[ValidationException]] if errors were found.
  
          :param correlation_id: (optional) transaction id to trace execution through call chain.
  
          :param value: a value to be validated.
  
          :param strict: true to treat warnings as errors.