aboutsummaryrefslogtreecommitdiffstats
path: root/src/jcgp/exceptions
diff options
context:
space:
mode:
authorEduardo Pedroni <ep625@york.ac.uk>2014-02-15 21:43:35 +0000
committerEduardo Pedroni <ep625@york.ac.uk>2014-02-15 21:45:21 +0000
commite9290a500b228e2561a8537adbc13e86f1356747 (patch)
tree5e76280ddefc5bf9dcf9cdb55e80ca4831998115 /src/jcgp/exceptions
parentafa484021ba94d12e98da682a9ff69c3837d5dbb (diff)
Population and Chromosome classes refactored so that EAs are easier to implement.
Diffstat (limited to 'src/jcgp/exceptions')
-rw-r--r--src/jcgp/exceptions/InsufficientConnectionsException.java10
-rw-r--r--src/jcgp/exceptions/InvalidArgumentsException.java20
-rw-r--r--src/jcgp/exceptions/ParameterMismatchException.java10
3 files changed, 40 insertions, 0 deletions
diff --git a/src/jcgp/exceptions/InsufficientConnectionsException.java b/src/jcgp/exceptions/InsufficientConnectionsException.java
new file mode 100644
index 0000000..2ffc10f
--- /dev/null
+++ b/src/jcgp/exceptions/InsufficientConnectionsException.java
@@ -0,0 +1,10 @@
+package jcgp.exceptions;
+
+public class InsufficientConnectionsException extends RuntimeException {
+
+ /**
+ *
+ */
+ private static final long serialVersionUID = 660740514800883541L;
+
+}
diff --git a/src/jcgp/exceptions/InvalidArgumentsException.java b/src/jcgp/exceptions/InvalidArgumentsException.java
new file mode 100644
index 0000000..537018d
--- /dev/null
+++ b/src/jcgp/exceptions/InvalidArgumentsException.java
@@ -0,0 +1,20 @@
+package jcgp.exceptions;
+
+public class InvalidArgumentsException extends RuntimeException {
+
+ /**
+ *
+ */
+ private static final long serialVersionUID = 2675108124600817777L;
+ private String reason;
+
+ public InvalidArgumentsException(String reason) {
+ super();
+ this.reason = reason;
+ }
+
+ public String getReason() {
+ return reason;
+ }
+
+}
diff --git a/src/jcgp/exceptions/ParameterMismatchException.java b/src/jcgp/exceptions/ParameterMismatchException.java
new file mode 100644
index 0000000..93a8f10
--- /dev/null
+++ b/src/jcgp/exceptions/ParameterMismatchException.java
@@ -0,0 +1,10 @@
+package jcgp.exceptions;
+
+public class ParameterMismatchException extends RuntimeException {
+
+ /**
+ *
+ */
+ private static final long serialVersionUID = -3161318886125868134L;
+
+}