public class ValidationException
extends org.mule.runtime.extension.api.exception.ModuleException
implements org.mule.runtime.api.exception.ErrorMessageAwareException
MuleException with the added
ability to provide the ValidationResult which failed as part of Error.getErrorMessage().
The exception message is set to match the one in ValidationResult.getMessage()
| Constructor and Description |
|---|
ValidationException(ValidationResult validationResult,
ValidationErrorType errorType)
Creates a new instance for the given
validationResult |
| Modifier and Type | Method and Description |
|---|---|
org.mule.runtime.api.message.Message |
getErrorMessage() |
ValidationResult |
getValidationResult() |
void |
setValidationResult(ValidationResult validationResult) |
getType, toStringaddSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTracepublic ValidationException(ValidationResult validationResult, ValidationErrorType errorType)
validationResultvalidationResult - a failing ValidationResultpublic org.mule.runtime.api.message.Message getErrorMessage()
getErrorMessage in interface org.mule.runtime.api.exception.ErrorMessageAwareExceptionValidationResult which caused this exceptionpublic ValidationResult getValidationResult()
public void setValidationResult(ValidationResult validationResult)
Copyright © 2025 MuleSoft, Inc.. All rights reserved.