From 6dd7405206b2babfe491b59250f4d1d7f78e654b Mon Sep 17 00:00:00 2001 From: Camil Staps Date: Sat, 18 Apr 2015 00:26:48 +0200 Subject: Week9 --- .../com/camilstaps/shop/DuplicateEntryException.java | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 Week9/src/com/camilstaps/shop/DuplicateEntryException.java (limited to 'Week9/src/com/camilstaps/shop/DuplicateEntryException.java') diff --git a/Week9/src/com/camilstaps/shop/DuplicateEntryException.java b/Week9/src/com/camilstaps/shop/DuplicateEntryException.java new file mode 100644 index 0000000..a91d7c7 --- /dev/null +++ b/Week9/src/com/camilstaps/shop/DuplicateEntryException.java @@ -0,0 +1,18 @@ +/** + * Copyright (c) 2015 Camil Staps + * See the LICENSE file for copying permission. + */ + +package com.camilstaps.shop; + +/** + * This Exception is thrown when an attempt is made to add a DatabaseItem to the + * Database which gives a uniqueness conflict, such as: + * * An article with the same name exists + * * A category with the same name exists + * * A user with the same number exists + * + * @author Camil Staps, s4498062 + */ +public class DuplicateEntryException extends Exception { +} -- cgit v1.2.3