Package org.cfcc

Examples of org.cfcc.NoPersonIdException


                    last_dn = sr.getName();
                    Attributes attrs = sr.getAttributes();
                    empl_num = (String) attrs.get("employeeNumber").get();
                }
                if (empl_num.equals("")) {
                    throw new NoPersonIdException("Person ID blank", username);
                }
            } else {
                throw new NoPersonIdException("Username not found", username);
            }
        } catch (NamingException e) {
            throw new NoPersonIdException("Error getting employee number.", username, e);
        } catch (NullPointerException e) {
            throw new NoPersonIdException("Null Pointer Exception", username);
        }
        return empl_num;
    }
View Full Code Here

TOP

Related Classes of org.cfcc.NoPersonIdException

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.