throw new MuleRuntimeException(CoreMessages.createStaticMessage(String.format(
"No global exception strategy defined with name %s.", defaultExceptionStrategyName)));
}
if (messagingExceptionHandler instanceof MessagingExceptionHandlerAcceptor)
{
MessagingExceptionHandlerAcceptor messagingExceptionHandlerAcceptor = (MessagingExceptionHandlerAcceptor) messagingExceptionHandler;
if (!messagingExceptionHandlerAcceptor.acceptsAll())
{
throw new MuleRuntimeException(
CoreMessages.createStaticMessage("Default exception strategy must not have expression attribute. It must accept any message."));
}
}