Source : UseralReadyExistsException.java

CS22120 Group Project - project source listings

Questions and comments on this file can be directed to this classes author: Paul Smith


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);
  }
}


Up one level.

Page automatically generated on: 28/12/00 at: 7:58:16 PM.