root / branches / v2_0_0_prep / libraries / libTools / src / org / gvsig / tools / dynobject / exception / IllegalDynMethodInvocationException.java @ 25791
History | View | Annotate | Download (850 Bytes)
1 |
package org.gvsig.tools.dynobject.exception; |
---|---|
2 |
|
3 |
import org.gvsig.tools.dynobject.DynClass; |
4 |
|
5 |
public class IllegalDynMethodInvocationException extends DynMethodException { |
6 |
|
7 |
/**
|
8 |
*
|
9 |
*/
|
10 |
private static final long serialVersionUID = -4671773584912776614L; |
11 |
private final static String MESSAGE_FORMAT = "Can't invoke method %(name) for class %(badclass)."; |
12 |
private final static String MESSAGE_KEY = "_IllegalDynMethodInvocationException"; |
13 |
|
14 |
public IllegalDynMethodInvocationException(String name, Class badClass) { |
15 |
super(MESSAGE_FORMAT, MESSAGE_KEY, serialVersionUID);
|
16 |
setValue("name", name);
|
17 |
setValue("badclass", badClass.getName());
|
18 |
} |
19 |
|
20 |
public IllegalDynMethodInvocationException(String name, DynClass dynClass) { |
21 |
super(MESSAGE_FORMAT, MESSAGE_KEY, serialVersionUID);
|
22 |
setValue("name", name);
|
23 |
setValue("badclass", dynClass.getName());
|
24 |
} |
25 |
} |