diff options
Diffstat (limited to 'src/uk/org/ury/database/exceptions/QueryFailureException.java')
-rw-r--r-- | src/uk/org/ury/database/exceptions/QueryFailureException.java | 44 |
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); + } +} |