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.routing.filter;
8   
9   import org.mule.api.MessagingException;
10  import org.mule.api.MuleEvent;
11  import org.mule.config.i18n.Message;
12  
13  
14  public class FilterUnacceptedException extends MessagingException
15  {
16      private static final long serialVersionUID = -1828111078295716525L;
17      
18      private transient Filter filter;
19  
20      public FilterUnacceptedException(Message message, MuleEvent event, Filter filter)
21      {
22          super(message, event);
23          this.filter = filter;
24          addInfo("Filter", filter.toString());
25      }
26  
27      public FilterUnacceptedException(Message message, MuleEvent event, Filter filter, Throwable cause)
28      {
29          super(message, event, cause);
30          this.filter = filter;
31          addInfo("Filter", filter.toString());
32      }
33  
34      public FilterUnacceptedException(MuleEvent event, Filter filter, Throwable cause)
35      {
36          super(event, cause);
37          this.filter = filter;
38          addInfo("Filter", (filter == null ? "null" : filter.toString()));
39      }
40  
41      public FilterUnacceptedException(Message message, MuleEvent event, Throwable cause)
42      {
43          super(message, event, cause);
44      }
45  
46      public FilterUnacceptedException(Message message, MuleEvent event)
47      {
48          super(message, event);
49      }
50  
51      public Filter getFilter()
52      {
53          return filter;
54      }
55  }