View Javadoc

1   /*
2    * $Id: FilterUnacceptedException.java 20465 2010-12-05 18:14:15Z mike.schilling $
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.api.routing.filter;
12  
13  import org.mule.api.MessagingException;
14  import org.mule.api.MuleEvent;
15  import org.mule.config.i18n.Message;
16  import org.mule.processor.InternalProcessingException;
17  
18  
19  public class FilterUnacceptedException extends MessagingException implements InternalProcessingException
20  {
21      private static final long serialVersionUID = -1828111078295716525L;
22      
23      private transient Filter filter;
24  
25      public FilterUnacceptedException(Message message, MuleEvent event, Filter filter)
26      {
27          super(message, event);
28          this.filter = filter;
29          addInfo("Filter", filter.toString());
30      }
31  
32      public FilterUnacceptedException(Message message, MuleEvent event, Filter filter, Throwable cause)
33      {
34          super(message, event, cause);
35          this.filter = filter;
36          addInfo("Filter", filter.toString());
37      }
38  
39      public FilterUnacceptedException(MuleEvent event, Filter filter, Throwable cause)
40      {
41          super(event, cause);
42          this.filter = filter;
43          addInfo("Filter", (filter == null ? "null" : filter.toString()));
44      }
45  
46      public FilterUnacceptedException(Message message, MuleEvent event, Throwable cause)
47      {
48          super(message, event, cause);
49      }
50  
51      public FilterUnacceptedException(Message message, MuleEvent event)
52      {
53          super(message, event);
54      }
55  
56      public Filter getFilter()
57      {
58          return filter;
59      }
60  }