From: Roland Häder Date: Wed, 20 Apr 2016 12:53:38 +0000 (+0200) Subject: added constructor with only contact id X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=76d9da0651c01e4147501ba6519e5a98c8f9a006;p=jcontacts-core.git added constructor with only contact id --- diff --git a/src/org/mxchange/jcontacts/exceptions/ContactNotFoundException.java b/src/org/mxchange/jcontacts/exceptions/ContactNotFoundException.java index d240105..fec37cd 100644 --- a/src/org/mxchange/jcontacts/exceptions/ContactNotFoundException.java +++ b/src/org/mxchange/jcontacts/exceptions/ContactNotFoundException.java @@ -30,6 +30,16 @@ public class ContactNotFoundException extends Exception { */ private static final long serialVersionUID = 23_759_801_876_416_568L; + /** + * Constructor with contact id + *

+ * @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 *