Statistics
| Revision:

root / branches / v2_0_0_prep / libraries / libTools / src / org / gvsig / tools / dynobject / exception / IllegalDynMethodException.java @ 25791

History | View | Annotate | Download (811 Bytes)

1
package org.gvsig.tools.dynobject.exception;
2

    
3
import org.gvsig.tools.dynobject.DynClass;
4

    
5
public class IllegalDynMethodException extends DynMethodException {
6

    
7
        /**
8
         *
9
         */
10
        private static final long serialVersionUID = 2958323225403802109L;
11
        private final static String MESSAGE_FORMAT = "method %(name) not found in class %(badclass).";
12
        private final static String MESSAGE_KEY = "_IllegalDynMethodException";
13

    
14
        public IllegalDynMethodException(String name, Class badClass) {
15
                super(MESSAGE_FORMAT, MESSAGE_KEY, serialVersionUID);
16
                setValue("name", name);
17
                setValue("badclass", badClass.getName());
18
        }
19

    
20
        public IllegalDynMethodException(String name, DynClass badDynClass) {
21
                super(MESSAGE_FORMAT, MESSAGE_KEY, serialVersionUID);
22
                setValue("name", name);
23
                setValue("badclass", badDynClass.getName());
24
        }
25
}