--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/java/sql-dk/src/info/globalcode/sql/dk/InvalidOptionsException.java Sun Dec 15 19:20:50 2013 +0100
@@ -0,0 +1,39 @@
+package info.globalcode.sql.dk;
+
+import java.util.ArrayList;
+import java.util.Collection;
+import java.util.Collections;
+
+/**
+ *
+ * @author Ing. František Kučera (frantovo.cz)
+ */
+public class InvalidOptionsException extends Exception {
+
+ private final Collection<OptionProblem> problems = new ArrayList<>();
+
+ public Collection<OptionProblem> getProblems() {
+ return Collections.unmodifiableCollection(problems);
+ }
+
+ public void addProblem(OptionProblem p) {
+ problems.add(p);
+ }
+
+ public boolean hasProblems() {
+ return !problems.isEmpty();
+ }
+
+ public static class OptionProblem {
+
+ private String description;
+
+ public OptionProblem(String description) {
+ this.description = description;
+ }
+
+ public String getDescription() {
+ return description;
+ }
+ }
+}