public class AstValidationUtils extends Object
ValidationResults in a uniform way.| Modifier and Type | Method and Description |
|---|---|
static void |
logWarningsAndThrowIfContainsErrors(org.mule.runtime.ast.api.validation.ValidationResult validationResult,
org.slf4j.Logger logger)
Scans the
ValidationResult logging warning messages. |
public static void logWarningsAndThrowIfContainsErrors(org.mule.runtime.ast.api.validation.ValidationResult validationResult,
org.slf4j.Logger logger)
throws org.mule.runtime.core.api.config.ConfigurationException
ValidationResult logging warning messages. Throws a ConfigurationException if there is any error.validationResult - The ValidationResult obtained using an ArtifactAstValidator.logger - The Logger to use for logging.org.mule.runtime.core.api.config.ConfigurationException - If there was any result item with ERROR level.Copyright © 2003–2022 MuleSoft, Inc.. All rights reserved.