import org.mxchange.jshopcore.model.basket.AddableBasketItem;
/**
- * An exception thrown when the given item is already added to the basketController.
+ * An exception thrown when the given item is already added to the
+ * basketController.
*
* @author Roland Haeder
*/
public class BasketItemAlreadyAddedException extends Exception {
+
/**
* Serial number
*/
* @param <T> Any item that is or extends the interface
* @param item An instance of a T item
*/
- public <T extends AddableBasketItem>BasketItemAlreadyAddedException (final T item) {
+ public <T extends AddableBasketItem> BasketItemAlreadyAddedException (final T item) {
// Create message and pass it along
super(MessageFormat.format("Item {0} has already been added. Did you miss to call isAdded()?", item));
}