aboutsummaryrefslogtreecommitdiff
path: root/src/uk/org/ury/database/exceptions/QueryFailureException.java
diff options
context:
space:
mode:
authorMatt Windsor <mbw500@student.cs.york.ac.uk>2011-02-20 01:30:54 +0000
committerMatt Windsor <mbw500@student.cs.york.ac.uk>2011-02-20 01:30:54 +0000
commitc8cb46d18ce2506e7da226b08c6521795b6e6173 (patch)
tree15a0cbc679cfb99d4f0ccd73a7c288838dac2b99 /src/uk/org/ury/database/exceptions/QueryFailureException.java
parenta0030a5314fe29960b82bc38a96728ee222a3be5 (diff)
Search now works; database and library viewer now separated by LibraryUtils static class (staticness will probably change later). LibraryItem now uses a hash-map to store semi-arbitrary data on tracks.
Diffstat (limited to 'src/uk/org/ury/database/exceptions/QueryFailureException.java')
-rw-r--r--src/uk/org/ury/database/exceptions/QueryFailureException.java44
1 files changed, 44 insertions, 0 deletions
diff --git a/src/uk/org/ury/database/exceptions/QueryFailureException.java b/src/uk/org/ury/database/exceptions/QueryFailureException.java
new file mode 100644
index 0000000..d7b3e5b
--- /dev/null
+++ b/src/uk/org/ury/database/exceptions/QueryFailureException.java
@@ -0,0 +1,44 @@
+/**
+ *
+ */
+package uk.org.ury.database.exceptions;
+
+/**
+ * Exception thrown when the database backend fails to execute
+ * a query.
+ *
+ * @author Matt Windsor
+ */
+
+public class QueryFailureException extends Exception
+{
+ /**
+ *
+ */
+ private static final long serialVersionUID = -7353531873142099828L;
+
+
+/**
+ * Construct a new QueryFailureException with a
+ * default reason.
+ */
+
+ public
+ QueryFailureException ()
+ {
+ super ("Query failure.");
+ }
+
+
+ /**
+ * Construct a new QueryFailureException.
+ *
+ * @param reason The explanation for the exception.
+ */
+
+ public
+ QueryFailureException (String reason)
+ {
+ super (reason);
+ }
+}