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.

def validate_and_throw_exception(self, correlation_id, value, strict = False):
        """
        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.
        """
        results = self.validate(value)
        ValidationException.throw_exception_if_needed(correlation_id, results, strict)