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.model.resolvers;
8   
9   import org.mule.api.MuleException;
10  import org.mule.config.i18n.CoreMessages;
11  
12  /**
13   * <code>NoSatisfiableMethodsException</code> is thrown by EntryPointResolvers when
14   * the service passed has no methods that meet the criteria of the configured
15   * EntryPointResolver.
16   *
17   * @see org.mule.api.model.EntryPointResolver
18   */
19  public class NoSatisfiableMethodsException extends MuleException
20  {
21      /** Serial version */
22      private static final long serialVersionUID = -4703387041767867189L;
23  
24  
25      public NoSatisfiableMethodsException(Object component, String methodName)
26      {
27          super(CoreMessages.noEntryPointFoundForNoArgsMethod(component, methodName));
28      }
29  
30      public NoSatisfiableMethodsException(Object component, Class<?>[] args)
31      {
32          super(CoreMessages.noEntryPointFoundWithArgs(component, args));
33      }
34  
35      public NoSatisfiableMethodsException(Object component, Class<?> returnType)
36      {
37          super(CoreMessages.noMatchingMethodsOnObjectReturning(component, returnType));
38      }
39  }