import javax.naming.NamingException;
import org.mxchange.jcontacts.contact.Contact;
import org.mxchange.jcontacts.contact.gender.Gender;
+import org.mxchange.jcontacts.exceptions.ContactAlreadyAddedException;
import org.mxchange.jcustomercore.events.AdminAddedCustomerEvent;
import org.mxchange.jcustomercore.events.CustomerAdminAddedEvent;
import org.mxchange.jcustomercore.exceptions.CustomerAlreadyRegisteredException;
try {
// Add customer and return updated
updatedCustomer = this.adminCustomerBean.addCustomer(customer);
- } catch (final CustomerAlreadyRegisteredException ex) {
+ } catch (final CustomerAlreadyRegisteredException | ContactAlreadyAddedException ex) {
// Throw again
throw new FaceletException(ex);
}