head	1.10;
access;
symbols
	TIGRIS_1_1_0RC2:1.8
	TIGRIS_1_1_0RC1:1.8
	TIGRIS_1_1:1.8.0.4
	TIGRIS_1_0_8:1.8
	TIGRIS_1_0_8RC3:1.8
	TIGRIS_1_0_8RC2:1.8
	TIGRIS_1_0_8RC1:1.8
	TIGRIS_1_0_7:1.8
	TIGRIS_1_0_7RC3:1.8
	TIGRIS_1_0_7RC2:1.8
	TIGRIS_1_0_7RC1:1.8
	TIGRIS_1_0_6:1.8
	TIGRIS_1_0_6RC5:1.8
	TIGRIS_1_0_6RC4:1.8
	TIGRIS_1_0_6RC3:1.8
	TIGRIS_1_0_6RC2:1.8
	TIGRIS_1_0_6RC1:1.8
	TIGRIS_1_0_5:1.8
	TIGRIS_1_0_5RC6:1.8
	TIGRIS_1_0_5RC5:1.8
	TIGRIS_1_0_5RC4:1.8
	TIGRIS_1_0_5RC3:1.8
	TIGRIS_1_0_5RC2:1.8
	TIGRIS_1_0_5RC1:1.8
	TIGRIS_1_0_4:1.8
	TIGRIS_1_0_3:1.8
	TIGRIS_1_0_2:1.8
	TIGRIS_1_0_1:1.8
	TIGRIS_1_0:1.8.0.6
	TIGRIS_1_0_0:1.8
	TIGRIS_1_0_0_RC1:1.8.0.2
	dlr:1.1.1
	TIGRIS_0_9_2_4:1.5
	TIGRIS_0_9_2_3:1.5
	HELM_PEER_PORT_BRANCH:1.1.1.2
	TURBINE_PEER:1.7
	TIGRIS_0_9_2_1:1.7
	TIGRIS_0_9_2:1.5.0.6
	TIGRIS_0_9_0:1.5.0.4
	TIGRIS_0_8_4:1.5.0.2
	NEWHELM:1.1.1.1
	TIGRIS_NOV_12_2000:1.1.1
	OLDHELM:1.4.0.4
	TIGRIS_NOV_11_2000:1.4
	TIGRIS_SEP_13_2000:1.4.0.2;
locks; strict;
comment	@# @;


1.10
date	2001.08.11.09.08.00;	author dlr;	state Exp;
branches;
next	1.9;

1.9
date	2001.07.13.21.55.03;	author leonardr;	state Exp;
branches;
next	1.8;

1.8
date	2001.02.21.01.08.20;	author dlr;	state Exp;
branches;
next	1.7;

1.7
date	2001.01.26.18.28.59;	author edk;	state Exp;
branches
	1.7.2.1;
next	1.6;

1.6
date	2001.01.26.05.24.05;	author edk;	state dead;
branches;
next	1.5;

1.5
date	2000.11.12.22.57.31;	author dlr;	state Exp;
branches;
next	1.4;

1.4
date	2000.10.03.21.46.04;	author dlr;	state Exp;
branches;
next	1.3;

1.3
date	2000.10.03.21.40.15;	author leonardr;	state Exp;
branches;
next	1.2;

1.2
date	2000.10.03.21.18.26;	author leonardr;	state Exp;
branches;
next	1.1;

1.1
date	2000.10.03.21.13.02;	author leonardr;	state Exp;
branches
	1.1.1.1;
next	;

1.1.1.1
date	2000.11.12.21.14.50;	author dlr;	state Exp;
branches;
next	1.1.1.2;

1.1.1.2
date	2001.02.21.00.32.03;	author dlr;	state Exp;
branches;
next	;

1.7.2.1
date	2001.01.28.01.02.17;	author dlr;	state dead;
branches;
next	1.7.2.2;

1.7.2.2
date	2001.01.28.01.18.21;	author dlr;	state Exp;
branches;
next	1.7.2.3;

1.7.2.3
date	2001.02.16.07.40.18;	author dlr;	state Exp;
branches;
next	;


desc
@@


1.10
log
@Upgrading to Turbine 3.0-dev, Fulcrum 1.0, and Torque 1.0.
@
text
@package org.tigris.helm;

import org.apache.commons.util.exception.NestableException;

/**
 * Exception thrown when an a entity instance--such as a record in a database 
 * table--already exists.  The following sample:
 *
 * <pre><code><blockquote>
 * throw new AlreadyExists("User with login name of " + loginName,
 *                         "domain named " + domain.getName());
 * </pre></blockquote></code>
 *
 * Results in an exception with a message of:
 *
 * <code><blockquote><pre>
 * User with login name of foo already exists in domain named bar.
 * </pre></blockquote></code>
 *
 * @@author <a href="mailto:dlr@@collab.net">Daniel Rall</a>
 * @@version $Id: AlreadyExists.java,v 1.9 2001/07/13 21:55:03 leonardr Exp $
 */
public class AlreadyExists extends NestableException
{
    /**
     * Create a new instance of the <code>Exception</code>.
     *
     * @@param what The type of entity that already exists.
     */
    public AlreadyExists (String what)
    {
        super(what + " already exists");
    }

    /**
     * Create a new instance of the <code>Exception</code>.
     *
     * @@param what  The type of entity that already exists.
     * @@param where Where the entity already exists.
     */
    public AlreadyExists (String what, String where)
    {
        super(what + " already exists in " + where);
    }
}
@


1.9
log
@No reason for this not to extend TurbineException.
@
text
@d3 1
a3 1
import org.apache.turbine.util.TurbineException;
d21 1
a21 1
 * @@version $Id: AlreadyExists.java,v 1.8 2001/02/21 01:08:20 dlr Exp $
d23 1
a23 1
public class AlreadyExists extends TurbineException
@


1.8
log
@This is the highest revision from the HELM_PEER_PORT_BRANCH.  The previous import caused too many conflicts to resolve manually
@
text
@d3 2
d21 1
a21 1
 * @@version $Id: AlreadyExists.java,v 1.7.2.3 2001/02/16 07:40:18 dlr Exp $
d23 1
a23 1
public class AlreadyExists extends Exception
@


1.7
log
@readding all the files as part of the process of returning to the way
things were as of tuesday
@
text
@d5 12
a16 1
 * table--already exists.
d19 1
a19 1
 * @@version $Id: AlreadyExists.java,v 1.5 2000/11/12 22:57:31 dlr Exp $
@


1.7.2.1
log
@Porting to the Turbine Peer system.  -dlr and leonardr
@
text
@d8 1
a8 1
 * @@version $Id: AlreadyExists.java,v 1.7 2001/01/26 18:28:59 edk Exp $
@


1.7.2.2
log
@Classes ported to the Turbine Peer system. -dlr and leonardr
@
text
@d8 1
a8 1
 * @@version $Id: AlreadyExists.java,v 1.5 2000/11/12 22:57:31 dlr Exp $
@


1.7.2.3
log
@Added usage documentation.
@
text
@d5 1
a5 12
 * table--already exists.  The following sample:
 *
 * <pre><code><blockquote>
 * throw new AlreadyExists("User with login name of " + loginName,
 *                         "domain named " + domain.getName());
 * </pre></blockquote></code>
 *
 * Results in an exception with a message of:
 *
 * <code><blockquote><pre>
 * User with login name of foo already exists in domain named bar.
 * </pre></blockquote></code>
d8 1
a8 1
 * @@version $Id: AlreadyExists.java,v 1.7.2.2 2001/01/28 01:18:21 dlr Exp $
@


1.6
log
@revert this stuff to its state as of 2001/01/24 12:42:00 GMT -- with
the following exceptions, which have some different modifications so
they'll work with changes which have happened in joist:

ProjectNewsEdit.java
SkinManager.java
SkinStyleElementValueManager.java
StyleElementManager.java
StyleManager.java

it compiles.  i dunno if it works, though.
@
text
@@


1.5
log
@Resolved merge conflicts.
@
text
@d8 1
a8 1
 * @@version $Id: AlreadyExists.java,v 1.1.1.1 2000/11/12 21:14:50 dlr Exp $
@


1.4
log
@corrected build error
@
text
@d8 1
a8 1
 * @@version $Id: AlreadyExists.java,v 1.3 2000/10/03 21:40:15 leonardr Exp $
@


1.3
log
@Enhanced to support entities needing AlreadyExists Exceptions that are not associated with a "where".
@
text
@d8 1
a8 1
 * @@version $Id: AlreadyExists.java,v 1.2 2000/10/03 21:18:26 leonardr Exp $
d15 1
a15 1
     * @@param what  The type of entity that already exists.
d19 1
a19 1
        super(what + " already exists);
@


1.2
log
@Corrected JavaDoc.  -dlr
@
text
@d8 1
a8 1
 * @@version $Id: AlreadyExists.java,v 1.1 2000/10/03 21:13:02 leonardr Exp $
d12 10
@


1.1
log
@New exception to replace a *ton* of duplicate static inner classes (ugh). -dlr
@
text
@d8 1
a8 1
 * @@version $Id: $
d13 1
a13 1
     * Create a new "list already exists" exception
@


1.1.1.1
log
@Merging newhelm tree into helm, as per IZ issue #557.  Previous major version of helm is tagged TIGRIS_NOV_11_2000.
@
text
@d8 1
a8 1
 * @@version $Id: AlreadyExists.java,v 1.1 2000/10/05 20:05:40 jrobbins Exp $
d13 1
a13 11
     * Create a new instance of the <code>Exception</code>.
     *
     * @@param what The type of entity that already exists.
     */
    public AlreadyExists (String what)
    {
        super(what + " already exists");
    }

    /**
     * Create a new instance of the <code>Exception</code>.
@


1.1.1.2
log
@Replacing the HEAD with the HELM_PEER_PORT_BRANCH.
@
text
@d5 1
a5 12
 * table--already exists.  The following sample:
 *
 * <pre><code><blockquote>
 * throw new AlreadyExists("User with login name of " + loginName,
 *                         "domain named " + domain.getName());
 * </pre></blockquote></code>
 *
 * Results in an exception with a message of:
 *
 * <code><blockquote><pre>
 * User with login name of foo already exists in domain named bar.
 * </pre></blockquote></code>
d8 1
a8 1
 * @@version $Id: AlreadyExists.java,v 1.7.2.3 2001/02/16 07:40:18 dlr Exp $
@


