gvsig-vectorediting / org.gvsig.vectorediting / trunk / org.gvsig.vectorediting / org.gvsig.vectorediting.lib / org.gvsig.vectorediting.lib.api / src / main / java / org / gvsig / vectorediting / lib / api / exceptions / ParseException.java @ 60
History | View | Annotate | Download (2.07 KB)
1 |
/*
|
---|---|
2 |
* Copyright 2014 DiSiD Technologies S.L.L. All rights reserved.
|
3 |
*
|
4 |
* Project : DiSiD org.gvsig.vectorediting.lib.api
|
5 |
* SVN Id : $Id$
|
6 |
*/
|
7 |
package org.gvsig.vectorediting.lib.api.exceptions; |
8 |
|
9 |
|
10 |
public class ParseException extends VectorEditingException { |
11 |
|
12 |
private static final long serialVersionUID = 7934726070832975067L; |
13 |
|
14 |
private static final String MESSAGE = |
15 |
"An error has been produced parsing.";
|
16 |
|
17 |
private static final String KEY = "_ParseException"; |
18 |
|
19 |
/**
|
20 |
* Constructor to be used in rare cases, usually you must create a new child
|
21 |
* exception class for each case.
|
22 |
* <strong>Don't use this constructor in child classes.</strong>
|
23 |
*/
|
24 |
public ParseException() { |
25 |
super(MESSAGE, KEY, serialVersionUID);
|
26 |
} |
27 |
|
28 |
/**
|
29 |
* Constructor to be used in rare cases, usually you must create a new child
|
30 |
* exception class for each case.
|
31 |
* <p>
|
32 |
* <strong>Don't use this constructor in child classes.</strong>
|
33 |
* </p>
|
34 |
*
|
35 |
* @param cause
|
36 |
* the original cause of the exception
|
37 |
*/
|
38 |
public ParseException(Exception cause) { |
39 |
super(MESSAGE, cause, KEY, serialVersionUID);
|
40 |
} |
41 |
|
42 |
/**
|
43 |
* @see BaseException#BaseException(String, String, long).
|
44 |
* @param message
|
45 |
* the default messageFormat to describe the exception
|
46 |
* @param key
|
47 |
* the key to use to search a localized messageFormnata
|
48 |
* @param code
|
49 |
* the unique code to identify the exception
|
50 |
*/
|
51 |
protected ParseException(String message, String key, long code) { |
52 |
super(message, key, code);
|
53 |
} |
54 |
|
55 |
/**
|
56 |
* @see BaseException#BaseException(String, Throwable, String, long).
|
57 |
* @param message
|
58 |
* the default messageFormat to describe the exception
|
59 |
* @param cause
|
60 |
* the original cause of the exception
|
61 |
* @param key
|
62 |
* the key to use to search a localized messageFormnata
|
63 |
* @param code
|
64 |
* the unique code to identify the exception
|
65 |
*/
|
66 |
protected ParseException(String message, Throwable cause, |
67 |
String key, long code) { |
68 |
super(message, cause, key, code);
|
69 |
} |
70 |
|
71 |
|
72 |
} |