]> git.mxchange.org Git - jcustomer-core.git/blobdiff - src/org/mxchange/jshopcore/exceptions/CategoryTitleAlreadyUsedException.java
auto-formatted project + updated jars
[jcustomer-core.git] / src / org / mxchange / jshopcore / exceptions / CategoryTitleAlreadyUsedException.java
index fa290f4819f9f473a70c8cab62fc611561b7394c..8c477a29f75da8b2b20f7232e44cbb953893b083 100644 (file)
@@ -21,10 +21,11 @@ import org.mxchange.jshopcore.model.category.Category;
 
 /**
  * An exception thrown when the given title is already used
- * 
+ * <p>
  * @author Roland Haeder<roland@mxchange.org>
  */
 public class CategoryTitleAlreadyUsedException extends Exception {
+
        /**
         * Serial number
         */
@@ -32,21 +33,11 @@ public class CategoryTitleAlreadyUsedException extends Exception {
 
        /**
         * Constructor with HttpServletRequest instance
-        *
+        * <p>
         * @param category Category instance
         */
        public CategoryTitleAlreadyUsedException (final Category category) {
                // Call super constructor
-               super(MessageFormat.format("Title {0} is already used.", category.getTitle())); //NOI18N
-       }
-
-       /**
-        * Constructor with HttpServletRequest instance
-        *
-        * @param cause Cause for this exception
-        */
-       public CategoryTitleAlreadyUsedException (final Throwable cause) {
-               // Call super constructor
-               super(cause);
+               super(MessageFormat.format("Title {0} is already used.", category.getCategoryTitle())); //NOI18N
        }
 }