]> git.mxchange.org Git - jproduct-core.git/blobdiff - src/org/mxchange/jproduct/exceptions/product/ProductAlreadyAddedException.java
Updated copyright year
[jproduct-core.git] / src / org / mxchange / jproduct / exceptions / product / ProductAlreadyAddedException.java
index 32accde182abf9236d4c08494ccc77d8e29de07f..d1a0f6dd371d3286f8156114c9fa77cb940c4816 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (C) 2016, 2017 Roland Häder
+ * Copyright (C) 2016 - 2024 Free Software Foundation
  *
  * This program is free software: you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
@@ -48,7 +48,7 @@ public class ProductAlreadyAddedException extends Exception {
         */
        public ProductAlreadyAddedException (final Product product) {
                // Call super constructor
-               super(MessageFormat.format("Product with title '{0}' already added.", product.getProductTitle())); //NOI18N
+               super(MessageFormat.format("Product with title {0} already added.", product.getProductI18nKey())); //NOI18N
        }
 
 }