diff options
| author | Paul Buetow <paul@buetow.org> | 2008-05-28 22:25:25 +0000 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2008-05-28 22:25:25 +0000 |
| commit | cd2024527c84e3e0fd22072a16ac1ff18e6d406d (patch) | |
| tree | a920cee36078ce83a3eda711fb3c64037a175ae8 | |
| parent | 1a16f73ec3bb0eae98b4d540984f9015abe4c249 (diff) | |
exceptions should start with VS too.
| -rw-r--r-- | sources/exceptions/ParseIntegerVectorException.java | 4 | ||||
| -rw-r--r-- | sources/exceptions/VSParseIntegerVectorException.java | 4 | ||||
| -rw-r--r-- | sources/prefs/editors/VSAbstractEditor.java | 2 | ||||
| -rw-r--r-- | sources/utils/VSTools.java | 6 |
4 files changed, 8 insertions, 8 deletions
diff --git a/sources/exceptions/ParseIntegerVectorException.java b/sources/exceptions/ParseIntegerVectorException.java deleted file mode 100644 index 0c8f58a..0000000 --- a/sources/exceptions/ParseIntegerVectorException.java +++ /dev/null @@ -1,4 +0,0 @@ -package exceptions; - -public class ParseIntegerVectorException extends Exception { -} diff --git a/sources/exceptions/VSParseIntegerVectorException.java b/sources/exceptions/VSParseIntegerVectorException.java new file mode 100644 index 0000000..1ee6d16 --- /dev/null +++ b/sources/exceptions/VSParseIntegerVectorException.java @@ -0,0 +1,4 @@ +package exceptions; + +public class VSParseIntegerVectorException extends Exception { +} diff --git a/sources/prefs/editors/VSAbstractEditor.java b/sources/prefs/editors/VSAbstractEditor.java index 06be310..acad7cb 100644 --- a/sources/prefs/editors/VSAbstractEditor.java +++ b/sources/prefs/editors/VSAbstractEditor.java @@ -840,7 +840,7 @@ public abstract class VSAbstractEditor implements ActionListener { String val = valField.getText(); Vector<Integer> vec = utils.VSTools.parseIntegerVector(val); prefsToEditMap.get(keys[1]).setVector(keys[0], vec); - } catch (exceptions.ParseIntegerVectorException e) { + } catch (exceptions.VSParseIntegerVectorException e) { } valField.setText(""+prefsToEditMap.get(keys[1]).getVector(keys[0])); diff --git a/sources/utils/VSTools.java b/sources/utils/VSTools.java index 80ba3ab..1a8338e 100644 --- a/sources/utils/VSTools.java +++ b/sources/utils/VSTools.java @@ -54,18 +54,18 @@ public final class VSTools { * @return the parsed vector */ public static Vector<Integer> parseIntegerVector(String string) - throws exceptions.ParseIntegerVectorException { + throws exceptions.VSParseIntegerVectorException { Vector<Integer> vec = new Vector<Integer>(); int index = string.indexOf('['); if (index == -1) - throw new exceptions.ParseIntegerVectorException(); + throw new exceptions.VSParseIntegerVectorException(); string = string.substring(index+1); index = string.indexOf(']'); if (index == -1) - throw new exceptions.ParseIntegerVectorException(); + throw new exceptions.VSParseIntegerVectorException(); string = string.substring(0, index); |
