public interface ExceptionFactory
Exceptions which represents a validations which failed. Methods in this class should always be invoked
using a ValidationResult object which method returns true| Modifier and Type | Method and Description |
|---|---|
<T extends Exception> |
createException(ValidationResult result,
Class<T> exceptionClass,
Event event)
Creates an exception of the given
exceptionClass which represents the given result. |
Exception |
createException(ValidationResult result,
String exceptionClassName,
Event event)
Creates an exception of the given
exceptionClassName which represents the given result. |
<T extends Exception> T createException(ValidationResult result, Class<T> exceptionClass, Event event)
exceptionClass which represents the given result. The actual rules about
what conditions is exceptionClass expected to meet (e.g: presence of default constructor) are up to the
implementations.T - the type of the exception to be createdresult - a ValidationResult which contains information about an errorexceptionClass - the Class of the exception to be createdevent - the Event on which validation failedException if type TException createException(ValidationResult result, String exceptionClassName, Event event)
exceptionClassName which represents the given result.
The actual rules about what conditions is the exception Class expected to meet (e.g: presence of default constructor)
are up to the implementations.result - a ValidationResult which contains information about an errorexceptionClassName - the name of the exception Class to be thrownevent - the Event on which validation failedException of type exceptionClassNameCopyright © 2003–2016 MuleSoft, Inc.. All rights reserved.