public interface ExceptionFactory
Exception
s 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,
MuleEvent event)
Creates an exception of the given
exceptionClass
which represents the given result . |
Exception |
createException(ValidationResult result,
String exceptionClassName,
MuleEvent event)
Creates an exception of the given
exceptionClassName
which represents the given result . |
<T extends Exception> T createException(ValidationResult result, Class<T> exceptionClass, MuleEvent 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 MuleEvent
on which validation failedException
if type T
Exception createException(ValidationResult result, String exceptionClassName, MuleEvent 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 MuleEvent
on which validation failedException
of type exceptionClassName
Copyright © 2003–2016 MuleSoft, Inc.. All rights reserved.