]> git.mxchange.org Git - pizzaservice-lib.git/commitdiff
Please cherry-pick:
authorRoland Häder <roland@mxchange.org>
Thu, 25 Aug 2016 13:02:32 +0000 (15:02 +0200)
committerRoland Haeder <roland@mxchange.org>
Thu, 25 Aug 2016 18:24:24 +0000 (20:24 +0200)
- throw checked exceptions, having some nice feedback from EJB

src/org/mxchange/pizzaapplication/beans/resendlink/ResendLinkSessionBeanRemote.java

index 07dc18c277e68a8cae07b4ffb1e18c218a481aa4..07b2dece01a4de8cd3c95710924142c76beab27a 100644 (file)
@@ -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
+        * <p>
+        * @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;
 
 }