Statistics
| Revision:

svn-gvsig-desktop / branches / v2_0_0_prep / libraries / libTools / src / org / gvsig / tools / dynobject / exception / DynMethodIllegalCodeException.java @ 25791

History | View | Annotate | Download (695 Bytes)

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

    
3
import org.gvsig.tools.exception.BaseException;
4

    
5
public class DynMethodIllegalCodeException extends DynMethodException {
6

    
7

    
8
        /**
9
         * 
10
         */
11
        private static final long serialVersionUID = 8651495467468815121L;
12
        private final static String MESSAGE_FORMAT = "Can't invoke method %(name) with code %(badcode)m real code %(code).";
13
        private final static String MESSAGE_KEY = "_DynMethodIllegalCodeException";
14

    
15
        public DynMethodIllegalCodeException(String name, int code, int badcode) {
16
                super(MESSAGE_FORMAT, MESSAGE_KEY, serialVersionUID);
17
                setValue("name", name);
18
                setValue("code", new Integer(code));
19
                setValue("badcode", new Integer(badcode));
20
        }
21
}