]> git.mxchange.org Git - jcontacts-core.git/commitdiff
added constructor with only contact id
authorRoland Häder <roland@mxchange.org>
Wed, 20 Apr 2016 12:53:38 +0000 (14:53 +0200)
committerRoland Häder <roland@mxchange.org>
Wed, 20 Apr 2016 12:53:38 +0000 (14:53 +0200)
src/org/mxchange/jcontacts/exceptions/ContactNotFoundException.java

index d24010587acf5b0e4e16e375ea462c549c3137b2..fec37cd24d71d907887098f2fd5d3e8f33cc4748 100644 (file)
@@ -30,6 +30,16 @@ public class ContactNotFoundException extends Exception {
         */
        private static final long serialVersionUID = 23_759_801_876_416_568L;
 
+       /**
+        * Constructor with contact id
+        * <p>
+        * @param contactId Contact id
+        */
+       public ContactNotFoundException (final Long contactId) {
+               // Call super constructor with message and cause
+               super(MessageFormat.format("Contact with id {0} was not found.", contactId)); //NOI18N
+       }
+
        /**
         * Constructor with contact id and causing exception
         * <p>