Search in sources :

Example 1 with ErrorBuilder

use of org.mule.runtime.core.internal.message.ErrorBuilder in project mule by mulesoft.

the class DefaultInterceptionEvent method setError.

public DefaultInterceptionEvent setError(ErrorType errorType, Throwable cause) {
    ErrorBuilder errorBuilder = ErrorBuilder.builder(cause);
    errorBuilder.errorType(errorType);
    interceptedOutput = interceptedOutput.error(errorBuilder.build()).removeInternalParameter(INTERCEPTION_RESOLVED_PARAMS);
    return this;
}
Also used : ErrorBuilder(org.mule.runtime.core.internal.message.ErrorBuilder)

Aggregations

ErrorBuilder (org.mule.runtime.core.internal.message.ErrorBuilder)1