1
2
3
4
5
6
7 package org.mule.test.integration.exceptions;
8
9 import org.mule.api.MuleEvent;
10 import org.mule.api.MuleException;
11 import org.mule.api.routing.RoutingException;
12 import org.mule.config.i18n.MessageFactory;
13 import org.mule.routing.outbound.OutboundPassThroughRouter;
14
15 public class ExceptionThrowingOutboundRouter extends OutboundPassThroughRouter
16 {
17 public MuleEvent process(MuleEvent event) throws MuleException
18 {
19 throw new RoutingException(MessageFactory.createStaticMessage("dummyException"), event, null);
20 }
21 }
22
23