svn-gvsig-desktop / trunk / org.gvsig.desktop / org.gvsig.desktop.plugin / org.gvsig.labeling.app / org.gvsig.labeling.app.mainplugin / src / main / java / org / gvsig / labeling / operations / ExpressionException.java @ 40665
History | View | Annotate | Download (680 Bytes)
1 |
package org.gvsig.labeling.operations; |
---|---|
2 |
/**
|
3 |
* Exception that can be caused by the incorrect creation of an Expression
|
4 |
*
|
5 |
* @author Pepe Vidal Salvador - jose.vidal.salvador@iver.es
|
6 |
*
|
7 |
*/
|
8 |
public class ExpressionException extends Exception { |
9 |
|
10 |
public static final int CLASS_CASTING_EXCEPTION = 1; |
11 |
public static final int INCORRECT_NUMBER_OF_ARGUMENTS = 2; |
12 |
public static final int ARGUMENT_ADDED_TO_CONSTANT = 4; |
13 |
public static final int DIVIDED_BY_CERO = 8; |
14 |
public static final int NO_CLASSIF_NAME = 16; |
15 |
|
16 |
private int type; |
17 |
|
18 |
public ExpressionException(int type) { |
19 |
super();
|
20 |
this.type = type;
|
21 |
} |
22 |
|
23 |
public int getType() { |
24 |
return type;
|
25 |
} |
26 |
|
27 |
} |