public class ValidationException extends MessagingException
MuleException
with the added ability to provide the ValidationResult
which failed.
The exception message is set to match the one in
ValidationResult.getMessage()event, muleMessage, PAYLOAD_INFO_KEY, PAYLOAD_TYPE_INFO_KEY, processedEvent| Constructor and Description |
|---|
ValidationException(ValidationResult validationResult,
MuleEvent event)
Creates a new instance for the given
validationResult |
| Modifier and Type | Method and Description |
|---|---|
protected String |
generateMessage(Message message) |
ValidationResult |
getValidationResult() |
causedBy, causedExactlyBy, causedRollback, causeMatches, extractMuleMessage, getCauseException, getEvent, getFailingMessageProcessor, getMuleMessage, handled, setCauseRollback, setHandled, setProcessedEventaddInfo, appendMessage, equals, getDetailedMessage, getExceptionCode, getI18nMessage, getInfo, getMessage, getMessageCode, getSummaryMessage, getVerboseMessage, hashCode, initialise, prependMessage, setExceptionCode, setMessage, setMessageaddSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic ValidationException(ValidationResult validationResult, MuleEvent event)
validationResultvalidationResult - a failing ValidationResultevent - MuleEvent on which validation failedpublic ValidationResult getValidationResult()
ValidationResult which caused this exceptionprotected String generateMessage(Message message)
generateMessage in class MessagingExceptionCopyright © 2003–2023 MuleSoft, Inc.. All rights reserved.