1 13 package org.jahia.security.accounts; 14 15 import org.jahia.exceptions.JahiaException; 16 17 18 24 public class AccountExistException extends JahiaException 25 { 26 27 private String mUserKey = null; 28 29 30 private String mSiteKey = null; 31 32 33 41 public AccountExistException (String userKey, String siteKey) 42 { 43 super ("An account error occured.", "User ["+ userKey + 44 "] has already an account for the site [" + siteKey + "]", 45 ACCOUNTS_ERROR, ERROR_SEVERITY); 46 mUserKey = userKey; 47 mSiteKey = siteKey; 48 } 49 50 51 58 public String getUserKey () { 59 return mUserKey; 60 } 61 62 63 70 public String getSiteKey () { 71 return mSiteKey; 72 } 73 } 74 | Popular Tags |