From 6abcc33f1c8698f02104400687e7abd27b7c258b Mon Sep 17 00:00:00 2001 From: =?utf8?q?Roland=20H=C3=A4der?= Date: Thu, 25 Aug 2016 15:02:32 +0200 Subject: [PATCH] Please cherry-pick: - throw checked exceptions, having some nice feedback from EJB --- .../beans/resendlink/ResendLinkSessionBeanRemote.java | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/org/mxchange/pizzaapplication/beans/resendlink/ResendLinkSessionBeanRemote.java b/src/org/mxchange/pizzaapplication/beans/resendlink/ResendLinkSessionBeanRemote.java index 07dc18c..07b2dec 100644 --- a/src/org/mxchange/pizzaapplication/beans/resendlink/ResendLinkSessionBeanRemote.java +++ b/src/org/mxchange/pizzaapplication/beans/resendlink/ResendLinkSessionBeanRemote.java @@ -19,6 +19,9 @@ package org.mxchange.pizzaapplication.beans.resendlink; import java.io.Serializable; import java.util.Locale; import javax.ejb.Remote; +import org.mxchange.jusercore.exceptions.UserNotFoundException; +import org.mxchange.jusercore.exceptions.UserStatusConfirmedException; +import org.mxchange.jusercore.exceptions.UserStatusLockedException; import org.mxchange.jusercore.model.user.User; /** @@ -38,7 +41,11 @@ public interface ResendLinkSessionBeanRemote extends Serializable { * @param user User instance * @param locale Locale instance * @param baseUrl Base URL + *

+ * @throws UserNotFoundException When the user is not found + * @throws UserStatusConfirmedException User account is already confirmed + * @throws UserStatusLockedException User account is locked */ - void resendConfirmationLink (final User user, final Locale locale, final String baseUrl); + void resendConfirmationLink (final User user, final Locale locale, final String baseUrl) throws UserNotFoundException, UserStatusConfirmedException, UserStatusLockedException; } -- 2.39.5