KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > mule > model > TooManySatisfiableMethodsException


1 /*
2  * $Id: TooManySatisfiableMethodsException.java 3798 2006-11-04 04:07:14Z aperepel $
3  * --------------------------------------------------------------------------------------
4  * Copyright (c) MuleSource, Inc. All rights reserved. http://www.mulesource.com
5  *
6  * The software in this package is published under the terms of the MuleSource MPL
7  * license, a copy of which has been included with this distribution in the
8  * LICENSE.txt file.
9  */

10
11 package org.mule.model;
12
13 import org.mule.config.i18n.Message;
14 import org.mule.config.i18n.Messages;
15 import org.mule.umo.model.ModelException;
16 import org.mule.util.StringMessageUtils;
17
18 /**
19  * <code>TooManySatisfiableMethodsException</code> is thrown by EntryPointResolvers
20  * when the component passed has more than one method that meets the criteria of the
21  * configured EntryPointResolver.
22  *
23  * @see org.mule.umo.model.UMOEntryPointResolver
24  */

25 public class TooManySatisfiableMethodsException extends ModelException
26 {
27     /**
28      * Serial version
29      */

30     private static final long serialVersionUID = 7856775581858822364L;
31
32     /**
33      * @param component
34      */

35     public TooManySatisfiableMethodsException(Object JavaDoc component)
36     {
37         super(new Message(Messages.TOO_MANY_ENTRY_POINTS_ON_X, StringMessageUtils.toString(component)));
38     }
39
40     public TooManySatisfiableMethodsException(Object JavaDoc component, Exception JavaDoc cause)
41     {
42         super(new Message(Messages.TOO_MANY_ENTRY_POINTS_ON_X, StringMessageUtils.toString(component)), cause);
43     }
44
45 }
46
Popular Tags