gvsig-tools / org.gvsig.tools / library / trunk / org.gvsig.tools / org.gvsig.tools.lib / src / main / java / org / gvsig / tools / dynobject / exception / DynMethodNotSupportedException.java @ 146
History | View | Annotate | Download (1.27 KB)
1 |
package org.gvsig.tools.dynobject.exception; |
---|---|
2 |
|
3 |
|
4 |
public class DynMethodNotSupportedException extends DynMethodException { |
5 |
|
6 |
/**
|
7 |
*
|
8 |
*/
|
9 |
private static final long serialVersionUID = -5061673498469446308L; |
10 |
private final static String MESSAGE_FORMAT = "Method not suported"; |
11 |
private final static String MESSAGE_FORMAT_CODE = "Method not suported (code=%(code)) for class %(className)"; |
12 |
private final static String MESSAGE_FORMAT_NAME = "Method not suported (name=%(name)) for class %(className)"; |
13 |
private final static String MESSAGE_KEY = "_Method_not_suported"; |
14 |
private final static String MESSAGE_KEY_CODE = "_Method_of_code_XcodeX_not_suported_for_class_XclassNameX"; |
15 |
private final static String MESSAGE_KEY_NAME = "_Method_of_name_XnameX_not_suported_for_class_XclassNameX"; |
16 |
|
17 |
public DynMethodNotSupportedException() {
|
18 |
super(MESSAGE_FORMAT, MESSAGE_KEY, serialVersionUID);
|
19 |
} |
20 |
|
21 |
public DynMethodNotSupportedException(int code, String className) { |
22 |
super(MESSAGE_FORMAT_CODE, MESSAGE_KEY_CODE, serialVersionUID);
|
23 |
setValue("code", "" + code); |
24 |
setValue("className", className);
|
25 |
} |
26 |
|
27 |
public DynMethodNotSupportedException(String name, String className) { |
28 |
super(MESSAGE_FORMAT_NAME, MESSAGE_KEY_NAME, serialVersionUID);
|
29 |
setValue("name", name);
|
30 |
setValue("className", className);
|
31 |
} |
32 |
|
33 |
} |