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>TooManySatisfiableMethodsException</code> is thrown by EntryPointResolvers
14   * when the service passed has more than one method that meets the criteria of the
15   * configured EntryPointResolver.
16   *
17   * @see org.mule.api.model.EntryPointResolver
18   */
19  public class TooManySatisfiableMethodsException extends MuleException
20  {
21      /** Serial version */
22      private static final long serialVersionUID = 7856775581858822364L;
23  
24      public TooManySatisfiableMethodsException(Object component, Object[] types)
25      {
26          super(CoreMessages.tooManyAcceptableMethodsOnObjectForTypes(component, types));
27      }
28  
29      public TooManySatisfiableMethodsException(Object component, Class<?> returnType)
30      {
31          super(CoreMessages.tooManyMatchingMethodsOnObjectWhichReturn(component, returnType));
32      }
33  }