View Javadoc

1   /*
2    * $Id: AggregationException.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.routing;
12  
13  import org.mule.config.i18n.Message;
14  import org.mule.impl.MuleMessage;
15  import org.mule.providers.NullPayload;
16  import org.mule.routing.inbound.EventGroup;
17  import org.mule.umo.endpoint.UMOImmutableEndpoint;
18  import org.mule.umo.routing.RoutingException;
19  
20  /**
21   * todo document
22   * 
23   * @author <a href="mailto:ross.mason@symphonysoft.com">Ross Mason</a>
24   * @version $Revision: 7976 $
25   */
26  public class AggregationException extends RoutingException
27  {
28      /**
29       * Serial version
30       */
31      private static final long serialVersionUID = 1276049971165761454L;
32  
33      private EventGroup eventGroup = null;
34  
35      public AggregationException(EventGroup eventGroup, UMOImmutableEndpoint endpoint)
36      {
37          super(new MuleMessage(NullPayload.getInstance()), endpoint);
38          this.eventGroup = eventGroup;
39      }
40  
41      public AggregationException(EventGroup eventGroup, UMOImmutableEndpoint endpoint, Throwable cause)
42      {
43          super(new MuleMessage(NullPayload.getInstance()), endpoint, cause);
44          this.eventGroup = eventGroup;
45      }
46  
47      public AggregationException(Message message, EventGroup eventGroup, UMOImmutableEndpoint endpoint)
48      {
49          super(message, new MuleMessage(NullPayload.getInstance()), endpoint);
50          this.eventGroup = eventGroup;
51      }
52  
53      public AggregationException(Message message,
54                                  EventGroup eventGroup,
55                                  UMOImmutableEndpoint endpoint,
56                                  Throwable cause)
57      {
58          super(message, new MuleMessage(NullPayload.getInstance()), endpoint, cause);
59          this.eventGroup = eventGroup;
60      }
61  
62      public EventGroup getEventGroup()
63      {
64          return eventGroup;
65      }
66  }