View Javadoc
1   /*
2    * Copyright (c) MuleSoft, Inc.  All rights reserved.  http://www.mulesoft.com
3    * The software in this package is published under the terms of the CPAL v1.0
4    * license, a copy of which has been included with this distribution in the
5    * LICENSE.txt file.
6    */
7   package org.mule.api.transport;
8   
9   import org.mule.api.MuleEvent;
10  import org.mule.api.processor.MessageProcessor;
11  import org.mule.api.routing.RoutingException;
12  import org.mule.config.i18n.Message;
13  
14  /**
15   * <code>DispatchException</code> is thrown when an endpoint dispatcher fails to
16   * send, dispatch or receive a message.
17   */
18  public class DispatchException extends RoutingException
19  {
20      /**
21       * Serial version
22       */
23      private static final long serialVersionUID = -8204621943732496606L;
24  
25      public DispatchException(MuleEvent event, MessageProcessor target)
26      {
27          super(event, target);
28      }
29  
30      public DispatchException(MuleEvent event, MessageProcessor target, Throwable cause)
31      {
32          super(event, target, cause);
33      }
34  
35      public DispatchException(Message message, MuleEvent event, MessageProcessor target)
36      {
37          super(message, event, target);
38      }
39  
40      public DispatchException(Message message, MuleEvent event, MessageProcessor target, Throwable cause)
41      {
42          super(message, event, target, cause);
43      }
44  }