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.routing;
8   
9   import org.mule.api.processor.MessageProcessor;
10  import org.mule.api.routing.RoutingException;
11  import org.mule.config.i18n.Message;
12  
13  /**
14   * TODO document
15   *
16   */
17  public class AggregationException extends RoutingException
18  {
19      /**
20       * Serial version
21       */
22      private static final long serialVersionUID = 1276049971165761454L;
23  
24      private EventGroup eventGroup = null;
25  
26      public AggregationException(EventGroup eventGroup, MessageProcessor endpoint)
27      {
28          super(eventGroup.getMessageCollectionEvent(), endpoint);
29          this.eventGroup = eventGroup;
30      }
31  
32      public AggregationException(EventGroup eventGroup, MessageProcessor endpoint, Throwable cause)
33      {
34          super(eventGroup.getMessageCollectionEvent(), endpoint, cause);
35          this.eventGroup = eventGroup;
36      }
37  
38      public AggregationException(Message message, EventGroup eventGroup, MessageProcessor endpoint)
39      {
40          super(message, eventGroup.getMessageCollectionEvent(), endpoint);
41          this.eventGroup = eventGroup;
42      }
43  
44      public AggregationException(Message message, EventGroup eventGroup, MessageProcessor endpoint,
45          Throwable cause)
46      {
47          super(message, eventGroup.getMessageCollectionEvent(), endpoint, cause);
48          this.eventGroup = eventGroup;
49      }
50  
51      public EventGroup getEventGroup()
52      {
53          return eventGroup;
54      }
55  }