From 1d99762c7965d351510cfb5e08eac25e48d96038 Mon Sep 17 00:00:00 2001 From: Paul Buetow Date: Fri, 6 Jun 2025 08:02:52 +0300 Subject: Modernize project structure, update Maven config, move sources, add logging config, update README and .gitignore --- .../java/exceptions/VSEventNotCopyableException.java | 16 ++++++++++++++++ src/main/java/exceptions/VSNegativeNumberException.java | 12 ++++++++++++ .../java/exceptions/VSParseIntegerVectorException.java | 13 +++++++++++++ 3 files changed, 41 insertions(+) create mode 100644 src/main/java/exceptions/VSEventNotCopyableException.java create mode 100644 src/main/java/exceptions/VSNegativeNumberException.java create mode 100644 src/main/java/exceptions/VSParseIntegerVectorException.java (limited to 'src/main/java/exceptions') diff --git a/src/main/java/exceptions/VSEventNotCopyableException.java b/src/main/java/exceptions/VSEventNotCopyableException.java new file mode 100644 index 0000000..f542db8 --- /dev/null +++ b/src/main/java/exceptions/VSEventNotCopyableException.java @@ -0,0 +1,16 @@ +package exceptions; + +/** + * The Interface VSEventNotCopyableException, this exception is thrown if + * the someone tried to copy a not copyable event! + * + * @author Paul C. Buetow + */ +public class VSEventNotCopyableException extends Exception { + /** The serial version uid */ + private static final long serialVersionUID = 1L; + + public VSEventNotCopyableException(String descr) { + super(descr); + } +} diff --git a/src/main/java/exceptions/VSNegativeNumberException.java b/src/main/java/exceptions/VSNegativeNumberException.java new file mode 100644 index 0000000..edf2049 --- /dev/null +++ b/src/main/java/exceptions/VSNegativeNumberException.java @@ -0,0 +1,12 @@ +package exceptions; + +/** + * The Interface VSNegativeNumberException, this exception is thrown if + * a negative number has returned if a positive number has been expected. + * + * @author Paul C. Buetow + */ +public class VSNegativeNumberException extends Exception { + /** The serial version uid */ + private static final long serialVersionUID = 1L; +} diff --git a/src/main/java/exceptions/VSParseIntegerVectorException.java b/src/main/java/exceptions/VSParseIntegerVectorException.java new file mode 100644 index 0000000..19c2b82 --- /dev/null +++ b/src/main/java/exceptions/VSParseIntegerVectorException.java @@ -0,0 +1,13 @@ +package exceptions; + +/** + * The Interface VSParseIntegerVectorException, this exception is thrown if + * the VSAbstractEditor is not able to parse the vector fields input of the + * user. + * + * @author Paul C. Buetow + */ +public class VSParseIntegerVectorException extends Exception { + /** The serial version uid */ + private static final long serialVersionUID = 1L; +} -- cgit v1.2.3