View Javadoc

1   /*
2    * $Id: DispatchException.java 7976 2007-08-21 14:26:13Z dirk.olmes $
3    * --------------------------------------------------------------------------------------
4    * Copyright (c) MuleSource, Inc.  All rights reserved.  http://www.mulesource.com
5    *
6    * The software in this package is published under the terms of the CPAL v1.0
7    * license, a copy of which has been included with this distribution in the
8    * LICENSE.txt file.
9    */
10  
11  package org.mule.umo.provider;
12  
13  import org.mule.config.i18n.Message;
14  import org.mule.umo.UMOMessage;
15  import org.mule.umo.endpoint.UMOImmutableEndpoint;
16  import org.mule.umo.routing.RoutingException;
17  
18  /**
19   * <code>DispatchException</code> is thrown when an endpoint dispatcher fails to
20   * send, dispatch or receive a message.
21   */
22  
23  public class DispatchException extends RoutingException
24  {
25      /**
26       * Serial version
27       */
28      private static final long serialVersionUID = -8204621943732496605L;
29  
30      public DispatchException(UMOMessage message, UMOImmutableEndpoint endpoint)
31      {
32          super(message, endpoint);
33      }
34  
35      public DispatchException(UMOMessage umoMessage, UMOImmutableEndpoint endpoint, Throwable cause)
36      {
37          super(umoMessage, endpoint, cause);
38      }
39  
40      public DispatchException(Message message, UMOMessage umoMessage, UMOImmutableEndpoint endpoint)
41      {
42          super(message, umoMessage, endpoint);
43      }
44  
45      public DispatchException(Message message,
46                               UMOMessage umoMessage,
47                               UMOImmutableEndpoint endpoint,
48                               Throwable cause)
49      {
50          super(message, umoMessage, endpoint, cause);
51      }
52  }