package cs221.groupk.exceptions.database; import cs221.groupk.exceptions.*; /** * UserAlreadyExistsException is thrown if an attempt is made to add a user * with the same userID as an existing user. * * <P><I>Code spell-checked - Chris Milner - 5th December 2000.</I><P> * * @author <A HREF="mailto:[email protected]">Paul Smith</A> */ public class UserAlreadyExistsException extends CliffRailwayException { /** * Default Constructor for Exception UserAlreadyExistsException. */ public UserAlreadyExistsException() { super("User already Exists. You cannot have more than one user with the " + "same user id."); } /** * Overridden constructor for Exception UserAlreadyExistsException, * passing a custom message. * @param String msg - message passed to super class. */ public UserAlreadyExistsException(String msg) { super(msg); } }Page automatically generated on: 28/12/00 at: 7:58:16 PM.