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, setProcessedEvent
addInfo, appendMessage, equals, getDetailedMessage, getExceptionCode, getI18nMessage, getInfo, getMessage, getMessageCode, getSummaryMessage, getVerboseMessage, hashCode, initialise, prependMessage, setExceptionCode, setMessage, setMessage
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public ValidationException(ValidationResult validationResult, MuleEvent event)
validationResult
validationResult
- a failing ValidationResult
event
- MuleEvent
on which validation failedpublic ValidationResult getValidationResult()
ValidationResult
which caused this exceptionprotected String generateMessage(Message message)
generateMessage
in class MessagingException
Copyright © 2003–2016 MuleSoft, Inc.. All rights reserved.