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;
}
Aggregations