View Javadoc

1   /*
2    * $Id: AggregationException.java 19191 2010-08-25 21:05:23Z tcarlson $
3    * --------------------------------------------------------------------------------------
4    * Copyright (c) MuleSoft, Inc.  All rights reserved.  http://www.mulesoft.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.api.processor.MessageProcessor;
14  import org.mule.api.routing.RoutingException;
15  import org.mule.config.i18n.Message;
16  
17  /**
18   * TODO document
19   *
20   */
21  public class AggregationException extends RoutingException
22  {
23      /**
24       * Serial version
25       */
26      private static final long serialVersionUID = 1276049971165761454L;
27  
28      private EventGroup eventGroup = null;
29  
30      public AggregationException(EventGroup eventGroup, MessageProcessor endpoint)
31      {
32          super(eventGroup.getMessageCollectionEvent(), endpoint);
33          this.eventGroup = eventGroup;
34      }
35  
36      public AggregationException(EventGroup eventGroup, MessageProcessor endpoint, Throwable cause)
37      {
38          super(eventGroup.getMessageCollectionEvent(), endpoint, cause);
39          this.eventGroup = eventGroup;
40      }
41  
42      public AggregationException(Message message, EventGroup eventGroup, MessageProcessor endpoint)
43      {
44          super(message, eventGroup.getMessageCollectionEvent(), endpoint);
45          this.eventGroup = eventGroup;
46      }
47  
48      public AggregationException(Message message, EventGroup eventGroup, MessageProcessor endpoint,
49          Throwable cause)
50      {
51          super(message, eventGroup.getMessageCollectionEvent(), endpoint, cause);
52          this.eventGroup = eventGroup;
53      }
54  
55      public EventGroup getEventGroup()
56      {
57          return eventGroup;
58      }
59  }