From 76d9da0651c01e4147501ba6519e5a98c8f9a006 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Roland=20H=C3=A4der?= Date: Wed, 20 Apr 2016 14:53:38 +0200 Subject: [PATCH] added constructor with only contact id --- .../jcontacts/exceptions/ContactNotFoundException.java | 10 ++++++++++ 1 file changed, 10 insertions(+) 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 *

-- 2.39.5