root / trunk / libraries / libFMap / src / com / iver / cit / gvsig / fmap / core / symbols / SymbolDrawingException.java @ 38563
History | View | Annotate | Download (1.23 KB)
1 | 18622 | jdominguez | package com.iver.cit.gvsig.fmap.core.symbols; |
---|---|---|---|
2 | |||
3 | import com.iver.cit.gvsig.fmap.Messages; |
||
4 | |||
5 | /**
|
||
6 | * Exception thrown when a symbol cannot be drawn. The type of the exception
|
||
7 | * will determine the cause.
|
||
8 | * <ol>
|
||
9 | * <li><b>Unsupported set of settings</b>: getType() == SymbolDrawingException.UNSUPPORTED_SET_OF_SETTINGS</li>
|
||
10 | * <li><b>Shape type mismatch</b>: getType() == SymbolDrawingException.SHAPETYPE_MISMATCH</li>
|
||
11 | * </ol>
|
||
12 | *
|
||
13 | * @author jaume dominguez faus - jaume.dominguez@iver.es
|
||
14 | *
|
||
15 | */
|
||
16 | public class SymbolDrawingException extends Exception { |
||
17 | private static final long serialVersionUID = 4059410328246182074L; |
||
18 | public static final int UNSUPPORTED_SET_OF_SETTINGS = 0; |
||
19 | public static final int SHAPETYPE_MISMATCH = 1; |
||
20 | public static final String STR_UNSUPPORTED_SET_OF_SETTINGS = Messages.getString("unsupported_set_of_settings"); |
||
21 | |||
22 | private int type; |
||
23 | |||
24 | public int getType() { |
||
25 | return type;
|
||
26 | } |
||
27 | /**
|
||
28 | * Creates a new instance of this exception.
|
||
29 | * <ol>
|
||
30 | * <li><b>Unsupported set of settings</b>: getType() == SymbolDrawingException.UNSUPPORTED_SET_OF_SETTINGS</li>
|
||
31 | * <li><b>Shape type mismatch</b>: getType() == SymbolDrawingException.SHAPETYPE_MISMATCH</li>
|
||
32 | * </ol>
|
||
33 | */
|
||
34 | public SymbolDrawingException(int type) { |
||
35 | this.type = type;
|
||
36 | } |
||
37 | } |