Hmmm.  Shouldn't EngineException extend TorqueException rather than
NestableException?  As it stands, won't this break backwards
compatibility for those who have adopted TorqueException?

- Dan

[EMAIL PROTECTED] writes:

> mpoeschl    02/05/08 12:45:46
>
>   Modified:    src/java/org/apache/torque/engine/database/model
>                         AppData.java Column.java
>                         ConstraintNameGenerator.java Database.java
>                         Index.java NameFactory.java NameGenerator.java
>                         Table.java
>   Added:       src/java/org/apache/torque/engine EngineException.java
>   Log:
>   add EngineException and use it within the torque.engine package
>   this is a step to decoupled the generator from torque
>   
>   Revision  Changes    Path
>   1.11      +12 -12    
>jakarta-turbine-torque/src/java/org/apache/torque/engine/database/model/AppData.java
>   
>   Index: AppData.java
>   ===================================================================
>   RCS file: 
>/home/cvs/jakarta-turbine-torque/src/java/org/apache/torque/engine/database/model/AppData.java,v
>   retrieving revision 1.10
>   retrieving revision 1.11
>   diff -u -r1.10 -r1.11
>   --- AppData.java    29 Apr 2002 19:47:45 -0000      1.10
>   +++ AppData.java    8 May 2002 19:45:45 -0000       1.11
>   @@ -67,7 +67,7 @@
>    
>    import org.apache.commons.lang.Strings;
>    import org.apache.torque.Torque;
>   -import org.apache.torque.TorqueException;
>   +import org.apache.torque.engine.EngineException;
>    
>    /**
>     * A class for holding application data structures.
>   @@ -75,7 +75,7 @@
>     * @author <a href="mailto:[EMAIL PROTECTED]>Leon Messerschmidt</a>
>     * @author <a href="mailto:[EMAIL PROTECTED]>John McNally</a>
>     * @author <a href="mailto:[EMAIL PROTECTED]>Daniel Rall</a>
>   - * @version $Id: AppData.java,v 1.10 2002/04/29 19:47:45 jon Exp $
>   + * @version $Id: AppData.java,v 1.11 2002/05/08 19:45:45 mpoeschl Exp $
>     */
>    public class AppData
>    {
>   @@ -126,10 +126,10 @@
>         * @param databaseType The type of database to retrieve the
>         * properties of.
>         * @return The idiosyncrasies of <code>databaseType</code>.
>   -     * @exception TorqueException Couldn't locate properties file.
>   +     * @exception EngineException Couldn't locate properties file.
>         */
>        protected Properties getIdiosyncrasies(String databaseType)
>   -        throws TorqueException
>   +        throws EngineException
>        {
>            Properties idiosyncrasies =
>                (Properties) idiosyncrasyTable.get(databaseType);
>   @@ -154,11 +154,11 @@
>                    }
>                    idiosyncrasyTable.put(databaseType, idiosyncrasies);
>                }
>   -            else 
>   +            else
>                {
>                    try
>                    {
>   -                    String path = '/' + basePropsFilePath + databaseType + 
>   +                    String path = '/' + basePropsFilePath + databaseType +
>                            "/db.props";
>                        idiosyncrasies.load(getClass().getResourceAsStream(path));
>                    }
>   @@ -167,10 +167,10 @@
>                        e.printStackTrace();
>                    }
>                }
>   -            
>   -            if (idiosyncrasies.isEmpty()) 
>   +
>   +            if (idiosyncrasies.isEmpty())
>                {
>   -                throw new TorqueException("Database-specific properties " +
>   +                throw new EngineException("Database-specific properties " +
>                                              "file does not exist: " +
>                                              propsFile.getAbsolutePath());
>                }
>   @@ -207,7 +207,7 @@
>        {
>            return Strings.replace(name, "-schema", "");
>        }
>   -    
>   +
>        /**
>         * Get database object.
>         *
>   @@ -220,7 +220,7 @@
>    
>        /**
>         * Return an array of all databases
>   -     * 
>   +     *
>         * @return Array of Database objects
>         */
>        public Database[] getDatabases()
>   @@ -244,7 +244,7 @@
>    
>        /**
>         * Return the database with the specified name.
>   -     * 
>   +     *
>         * @return A Database object.  If it does not exist it returns null
>         */
>        public Database getDatabase (String name)
>   
>   
>   
>   1.22      +15 -15    
>jakarta-turbine-torque/src/java/org/apache/torque/engine/database/model/Column.java
>   
>   Index: Column.java
>   ===================================================================
>   RCS file: 
>/home/cvs/jakarta-turbine-torque/src/java/org/apache/torque/engine/database/model/Column.java,v
>   retrieving revision 1.21
>   retrieving revision 1.22
>   diff -u -r1.21 -r1.22
>   --- Column.java     29 Apr 2002 19:47:45 -0000      1.21
>   +++ Column.java     8 May 2002 19:45:45 -0000       1.22
>   @@ -61,7 +61,7 @@
>    
>    import org.xml.sax.Attributes;
>    
>   -import org.apache.torque.TorqueException;
>   +import org.apache.torque.engine.EngineException;
>    
>    /**
>     * A Class for holding data about a column used in an Application.
>   @@ -71,7 +71,7 @@
>     * @author <a href="mailto:[EMAIL PROTECTED]";>Jon S. Stevens</a>
>     * @author <a href="mailto:[EMAIL PROTECTED]";>Daniel Rall</a>
>     * @author <a href="mailto:byron_foster@[EMAIL PROTECTED]>Byron Foster</a>
>   - * @version $Id: Column.java,v 1.21 2002/04/29 19:47:45 jon Exp $
>   + * @version $Id: Column.java,v 1.22 2002/05/08 19:45:45 mpoeschl Exp $
>     */
>    public class Column
>    {
>   @@ -115,7 +115,7 @@
>    
>        /**
>         * Creates a new column and set the name
>   -     * 
>   +     *
>         * @param name column name
>         */
>        public Column(String name)
>   @@ -160,10 +160,10 @@
>    
>            javaName = attrib.getValue("javaName");
>            javaType = attrib.getValue("javaType");
>   -        if ( javaType != null && javaType.length() == 0 ) 
>   +        if ( javaType != null && javaType.length() == 0 )
>            {
>                javaType = null;
>   -        }        
>   +        }
>    
>            // retrieves the method for converting from specified name to
>            // a java name.
>   @@ -266,7 +266,7 @@
>                    javaName = NameFactory.generateName(NameFactory.JAVA_GENERATOR,
>                                                        inputs);
>                }
>   -            catch (TorqueException e)
>   +            catch (EngineException e)
>                {
>                    e.printStackTrace();
>                }
>   @@ -778,30 +778,30 @@
>        /**
>         * Return a string representation of the primitive java type which
>         * corresponds to the JDBC type of this column.
>   -     * 
>   +     *
>         * @return string representation of the primitive java type
>         */
>        public String getJavaPrimitive()
>        {
>            return TypeMap.getJavaNative(torqueType);
>        }
>   -    
>   +
>        /**
>         * Return a string representation of the native java type which corresponds
>         * to the JDBC type of this column. Use in the generation of Base objects.
>   -     * This method is used by torque, so it returns Key types for primaryKey and 
>   +     * This method is used by torque, so it returns Key types for primaryKey and
>         * foreignKey columns
>   -     * 
>   +     *
>         * @return java datatype used by torque
>         */
>        public String getJavaNative()
>        {
>            String jtype = TypeMap.getJavaNativeObject(torqueType);
>   -        if ( isUsePrimitive() ) 
>   +        if ( isUsePrimitive() )
>            {
>                jtype = TypeMap.getJavaNative(torqueType);
>            }
>   -        
>   +
>            if ( isPrimaryKey() || isForeignKey() )
>            {
>                if ( jtype.equals("String") )
>   @@ -840,7 +840,7 @@
>        public String getVillageMethod()
>        {
>            String vmethod = TypeMap.getVillageObjectMethod(torqueType);
>   -        if ( isUsePrimitive() ) 
>   +        if ( isUsePrimitive() )
>            {
>                vmethod = TypeMap.getVillageMethod(torqueType);
>            }
>   @@ -908,8 +908,8 @@
>        public boolean isUsePrimitive()
>        {
>            String s = getJavaType();
>   -        return (s != null && s.equals("primitive")) 
>   +        return (s != null && s.equals("primitive"))
>                || (s == null && !"object".equals(
>   -               getTable().getDatabase().getDefaultJavaType())); 
>   +               getTable().getDatabase().getDefaultJavaType()));
>        }
>    }
>   
>   
>   
>   1.3       +4 -4      
>jakarta-turbine-torque/src/java/org/apache/torque/engine/database/model/ConstraintNameGenerator.java
>   
>   Index: ConstraintNameGenerator.java
>   ===================================================================
>   RCS file: 
>/home/cvs/jakarta-turbine-torque/src/java/org/apache/torque/engine/database/model/ConstraintNameGenerator.java,v
>   retrieving revision 1.2
>   retrieving revision 1.3
>   diff -u -r1.2 -r1.3
>   --- ConstraintNameGenerator.java    7 May 2002 18:24:43 -0000       1.2
>   +++ ConstraintNameGenerator.java    8 May 2002 19:45:45 -0000       1.3
>   @@ -56,7 +56,7 @@
>    
>    import java.util.List;
>    
>   -import org.apache.torque.TorqueException;
>   +import org.apache.torque.engine.EngineException;
>    
>    /**
>     * A <code>NameGenerator</code> implementation for table-specific
>   @@ -64,7 +64,7 @@
>     * type of database in use.
>     *
>     * @author <a href="mailto:[EMAIL PROTECTED]>Daniel Rall</a>
>   - * @version $Id: ConstraintNameGenerator.java,v 1.2 2002/05/07 18:24:43 mpoeschl 
>Exp $
>   + * @version $Id: ConstraintNameGenerator.java,v 1.3 2002/05/08 19:45:45 mpoeschl 
>Exp $
>     */
>    public class ConstraintNameGenerator implements NameGenerator
>    {
>   @@ -84,7 +84,7 @@
>         * @see org.apache.torque.engine.database.model.NameGenerator
>         */
>        public String generateName(List inputs)
>   -        throws TorqueException
>   +        throws EngineException
>        {
>            StringBuffer name = new StringBuffer();
>            Database db = (Database) inputs.get(0);
>   @@ -108,7 +108,7 @@
>                                       maxBodyLength);
>                }
>            }
>   -        catch (TorqueException e)
>   +        catch (EngineException e)
>            {
>                System.err.println(e.getMessage());
>            }
>   
>   
>   
>   1.14      +10 -10    
>jakarta-turbine-torque/src/java/org/apache/torque/engine/database/model/Database.java
>   
>   Index: Database.java
>   ===================================================================
>   RCS file: 
>/home/cvs/jakarta-turbine-torque/src/java/org/apache/torque/engine/database/model/Database.java,v
>   retrieving revision 1.13
>   retrieving revision 1.14
>   diff -u -r1.13 -r1.14
>   --- Database.java   29 Apr 2002 19:47:45 -0000      1.13
>   +++ Database.java   8 May 2002 19:45:45 -0000       1.14
>   @@ -63,7 +63,7 @@
>    import org.xml.sax.Attributes;
>    
>    import org.apache.torque.Torque;
>   -import org.apache.torque.TorqueException;
>   +import org.apache.torque.engine.EngineException;
>    import org.apache.torque.adapter.IDMethod;
>    
>    
>   @@ -75,7 +75,7 @@
>     * @author <a href="mailto:[EMAIL PROTECTED]>Martin Poeschl</a>
>     * @author <a href="mailto:[EMAIL PROTECTED]>Daniel Rall</a>
>     * @author <a href="mailto:byron_foster@[EMAIL PROTECTED]>Byron Foster</a>
>   - * @version $Id: Database.java,v 1.13 2002/04/29 19:47:45 jon Exp $
>   + * @version $Id: Database.java,v 1.14 2002/05/08 19:45:45 mpoeschl Exp $
>     */
>    public class Database
>    {
>   @@ -93,7 +93,7 @@
>        private Hashtable tablesByName = new Hashtable();
>        private Hashtable tablesByJavaName = new Hashtable();
>        private boolean heavyIndexing;
>   -    
>   +
>        /**
>         * Creates a new instance with unset attributes.
>         */
>   @@ -247,20 +247,20 @@
>         * Get the value of heavyIndexing.
>         * @return value of heavyIndexing.
>         */
>   -    public boolean isHeavyIndexing() 
>   +    public boolean isHeavyIndexing()
>        {
>            return heavyIndexing;
>        }
>   -    
>   +
>        /**
>         * Set the value of heavyIndexing.
>         * @param v  Value to assign to heavyIndexing.
>         */
>   -    public void setHeavyIndexing(boolean  v) 
>   +    public void setHeavyIndexing(boolean  v)
>        {
>            this.heavyIndexing = v;
>        }
>   -    
>   +
>        /**
>         * Return an array of all tables
>         */
>   @@ -348,10 +348,10 @@
>         *
>         * @param name The name of the property to retrieve the value of.
>         * @return The value of the specified property.
>   -     * @exception TorqueException Couldn't access properties.
>   +     * @exception EngineException Couldn't access properties.
>         */
>        protected String getProperty(String name)
>   -        throws TorqueException
>   +        throws EngineException
>        {
>            Properties p = getAppData().getIdiosyncrasies(databaseType);
>            return (p == null ? null : p.getProperty(name));
>   @@ -378,7 +378,7 @@
>            return false;
>        }
>    
>   -  
>   +
>        /**
>         * Creats a string representation of this Database.
>         * The representation is given in xml format.
>   
>   
>   
>   1.19      +7 -7      
>jakarta-turbine-torque/src/java/org/apache/torque/engine/database/model/Index.java
>   
>   Index: Index.java
>   ===================================================================
>   RCS file: 
>/home/cvs/jakarta-turbine-torque/src/java/org/apache/torque/engine/database/model/Index.java,v
>   retrieving revision 1.18
>   retrieving revision 1.19
>   diff -u -r1.18 -r1.19
>   --- Index.java      29 Apr 2002 19:47:45 -0000      1.18
>   +++ Index.java      8 May 2002 19:45:45 -0000       1.19
>   @@ -58,7 +58,7 @@
>    import java.util.Iterator;
>    import java.util.List;
>    
>   -import org.apache.torque.TorqueException;
>   +import org.apache.torque.engine.EngineException;
>    
>    import org.xml.sax.Attributes;
>    
>   @@ -67,7 +67,7 @@
>     *
>     * @author <a href="mailto:[EMAIL PROTECTED]";>Jason van Zyl</a>
>     * @author <a href="mailto:[EMAIL PROTECTED]>Daniel Rall</a>
>   - * @version $Id: Index.java,v 1.18 2002/04/29 19:47:45 jon Exp $
>   + * @version $Id: Index.java,v 1.19 2002/05/08 19:45:45 mpoeschl Exp $
>     */
>    public class Index
>    {
>   @@ -94,11 +94,11 @@
>         * @param indexColumns The list of {@link
>         * org.apache.torque.engine.database.model.Column} objects which
>         * make up this index.  Cannot be empty.
>   -     * @exception TorqueException Error generating name.
>   +     * @exception EngineException Error generating name.
>         * @see #Index()
>         */
>        protected Index(Table table, List indexColumns)
>   -        throws TorqueException
>   +        throws EngineException
>        {
>            this();
>            setTable(table);
>   @@ -116,12 +116,12 @@
>            }
>            else
>            {
>   -            throw new TorqueException("Cannot create a new Index using an " +
>   +            throw new EngineException("Cannot create a new Index using an " +
>                                          "empty list Column object");
>            }
>        }
>    
>   -    private void createName() throws TorqueException
>   +    private void createName() throws EngineException
>        {
>            Table table = getTable();
>            List inputs = new ArrayList(4);
>   @@ -187,7 +187,7 @@
>                    // generate an index name if we don't have a supplied one
>                    createName();
>                }
>   -            catch (TorqueException e)
>   +            catch (EngineException e)
>                {
>                    // still no name
>                }
>   
>   
>   
>   1.8       +3 -3      
>jakarta-turbine-torque/src/java/org/apache/torque/engine/database/model/NameFactory.java
>   
>   Index: NameFactory.java
>   ===================================================================
>   RCS file: 
>/home/cvs/jakarta-turbine-torque/src/java/org/apache/torque/engine/database/model/NameFactory.java,v
>   retrieving revision 1.7
>   retrieving revision 1.8
>   diff -u -r1.7 -r1.8
>   --- NameFactory.java        8 Nov 2001 17:20:52 -0000       1.7
>   +++ NameFactory.java        8 May 2002 19:45:45 -0000       1.8
>   @@ -57,13 +57,13 @@
>    import java.util.Hashtable;
>    import java.util.List;
>    
>   -import org.apache.torque.TorqueException;
>   +import org.apache.torque.engine.EngineException;
>    
>    /**
>     * A name generation factory.
>     *
>     * @author <a href="mailto:[EMAIL PROTECTED]>Daniel Rall</a>
>   - * @version $Id: NameFactory.java,v 1.7 2001/11/08 17:20:52 mpoeschl Exp $
>   + * @version $Id: NameFactory.java,v 1.8 2002/05/08 19:45:45 mpoeschl Exp $
>     */
>    public class NameFactory
>    {
>   @@ -143,7 +143,7 @@
>         * @return The generated name.
>         */
>        public static String generateName(String algorithmName, List inputs)
>   -        throws TorqueException
>   +        throws EngineException
>        {
>            NameGenerator algorithm = instance.getAlgorithm(algorithmName);
>            return algorithm.generateName(inputs);
>   
>   
>   
>   1.8       +7 -7      
>jakarta-turbine-torque/src/java/org/apache/torque/engine/database/model/NameGenerator.java
>   
>   Index: NameGenerator.java
>   ===================================================================
>   RCS file: 
>/home/cvs/jakarta-turbine-torque/src/java/org/apache/torque/engine/database/model/NameGenerator.java,v
>   retrieving revision 1.7
>   retrieving revision 1.8
>   diff -u -r1.7 -r1.8
>   --- NameGenerator.java      15 Oct 2001 16:53:10 -0000      1.7
>   +++ NameGenerator.java      8 May 2002 19:45:45 -0000       1.8
>   @@ -25,13 +25,13 @@
>     *    Alternately, this acknowledgment may appear in the software itself,
>     *    if and wherever such third-party acknowledgments normally appear.
>     *
>   - * 4. The names "Apache" and "Apache Software Foundation" and 
>   - *    "Apache Turbine" must not be used to endorse or promote products 
>   - *    derived from this software without prior written permission. For 
>   + * 4. The names "Apache" and "Apache Software Foundation" and
>   + *    "Apache Turbine" must not be used to endorse or promote products
>   + *    derived from this software without prior written permission. For
>     *    written permission, please contact [EMAIL PROTECTED]
>     *
>     * 5. Products derived from this software may not be called "Apache",
>   - *    "Apache Turbine", nor may "Apache" appear in their name, without 
>   + *    "Apache Turbine", nor may "Apache" appear in their name, without
>     *    prior written permission of the Apache Software Foundation.
>     *
>     * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
>   @@ -56,14 +56,14 @@
>    
>    import java.util.List;
>    
>   -import org.apache.torque.TorqueException;
>   +import org.apache.torque.engine.EngineException;
>    
>    /**
>     * The generic interface to a name generation algorithm.
>     *
>     * @author <a href="mailto:[EMAIL PROTECTED]>Daniel Rall</a>
>     * @author <a href="mailto:byron_foster@[EMAIL PROTECTED]>Byron Foster</a>
>   - * @version $Id: NameGenerator.java,v 1.7 2001/10/15 16:53:10 jmcnally Exp $
>   + * @version $Id: NameGenerator.java,v 1.8 2002/05/08 19:45:45 mpoeschl Exp $
>     */
>    public interface NameGenerator
>    {
>   @@ -105,5 +105,5 @@
>         * @return The generated name.
>         */
>        String generateName(List inputs)
>   -        throws TorqueException;
>   +        throws EngineException;
>    }
>   
>   
>   
>   1.30      +15 -15    
>jakarta-turbine-torque/src/java/org/apache/torque/engine/database/model/Table.java
>   
>   Index: Table.java
>   ===================================================================
>   RCS file: 
>/home/cvs/jakarta-turbine-torque/src/java/org/apache/torque/engine/database/model/Table.java,v
>   retrieving revision 1.29
>   retrieving revision 1.30
>   diff -u -r1.29 -r1.30
>   --- Table.java      29 Apr 2002 19:47:45 -0000      1.29
>   +++ Table.java      8 May 2002 19:45:45 -0000       1.30
>   @@ -61,7 +61,7 @@
>    
>    import org.apache.commons.lang.Strings;
>    
>   -import org.apache.torque.TorqueException;
>   +import org.apache.torque.engine.EngineException;
>    import org.apache.torque.adapter.IDMethod;
>    
>    import org.xml.sax.Attributes;
>   @@ -75,7 +75,7 @@
>     * @author <a href="mailto:[EMAIL PROTECTED]>John McNally</a>
>     * @author <a href="mailto:[EMAIL PROTECTED]>Daniel Rall</a>
>     * @author <a href="mailto:byron_foster@[EMAIL PROTECTED]>Byron Foster</a>
>   - * @version $Id: Table.java,v 1.29 2002/04/29 19:47:45 jon Exp $
>   + * @version $Id: Table.java,v 1.30 2002/05/08 19:45:45 mpoeschl Exp $
>     */
>    public class Table implements IDMethod
>    {
>   @@ -121,7 +121,7 @@
>    
>        /**
>         * Constructs a table object with a name
>   -     * 
>   +     *
>         * @param name table name
>         */
>        public Table(String name)
>   @@ -137,7 +137,7 @@
>    
>        /**
>         * Load the table object from an xml tag.
>   -     * 
>   +     *
>         * @param attrib xml attributes
>         * @param defaultIdMethod defined at db level
>         */
>   @@ -239,7 +239,7 @@
>                    addIndex(new Index(this, pk.subList(i, size)));
>                }
>            }
>   -        catch (TorqueException e)
>   +        catch (EngineException e)
>            {
>                e.printStackTrace();
>            }
>   @@ -285,7 +285,7 @@
>                // as test cases), so we'll assume that we needn't add an
>                // entry to the system name list for these.
>            }
>   -        catch (TorqueException nameAlreadyInUse)
>   +        catch (EngineException nameAlreadyInUse)
>            {
>                nameAlreadyInUse.printStackTrace();
>            }
>   @@ -293,14 +293,14 @@
>    
>        /**
>         * Macro to a constraint name.
>   -     * 
>   +     *
>         * @param nameType constraint type
>         * @param nbr unique number for this constraint type
>         * @return unique name for constraint
>   -     * @throws TorqueException
>   +     * @throws EngineException
>         */
>        private final String acquireConstraintName(String nameType, int nbr)
>   -            throws TorqueException
>   +            throws EngineException
>        {
>            List inputs = new ArrayList(4);
>            inputs.add(getDatabase());
>   @@ -373,7 +373,7 @@
>        /**
>         * A utility function to create a new column from attrib and add it to this
>         * table.
>   -     * 
>   +     *
>         * @param attrib xml attributes for the column to add
>         * @return the added column
>         */
>   @@ -389,7 +389,7 @@
>        /**
>         * Adds a new column to the column list and set the
>         * parent table of the column to the current table
>   -     * 
>   +     *
>         * @param col the column to add
>         */
>        public void addColumn(Column col)
>   @@ -642,7 +642,7 @@
>                    javaName = NameFactory.generateName(NameFactory.JAVA_GENERATOR,
>                                                        inputs);
>                }
>   -            catch (TorqueException e)
>   +            catch (EngineException e)
>                {
>                    e.printStackTrace();
>                }
>   @@ -925,7 +925,7 @@
>    
>        /**
>         * Set the parent of the table
>   -     * 
>   +     *
>         * @param parent the parant database
>         */
>        public void setDatabase(Database parent)
>   @@ -935,7 +935,7 @@
>    
>        /**
>         * Get the parent of the table
>   -     * 
>   +     *
>         * @return the parant database
>         */
>        public Database getDatabase()
>   @@ -945,7 +945,7 @@
>    
>        /**
>         * Returns a XML representation of this table.
>   -     * 
>   +     *
>         * @return XML representation of this table
>         */
>        public String toString()
>   
>   
>   
>   1.1                  
>jakarta-turbine-torque/src/java/org/apache/torque/engine/EngineException.java
>   
>   Index: EngineException.java
>   ===================================================================
>   package org.apache.torque.engine;
>   
>   /* ====================================================================
>    * The Apache Software License, Version 1.1
>    *
>    * Copyright (c) 2002 The Apache Software Foundation.  All rights
>    * reserved.
>    *
>    * Redistribution and use in source and binary forms, with or without
>    * modification, are permitted provided that the following conditions
>    * are met:
>    *
>    * 1. Redistributions of source code must retain the above copyright
>    *    notice, this list of conditions and the following disclaimer.
>    *
>    * 2. Redistributions in binary form must reproduce the above copyright
>    *    notice, this list of conditions and the following disclaimer in
>    *    the documentation and/or other materials provided with the
>    *    distribution.
>    *
>    * 3. The end-user documentation included with the redistribution,
>    *    if any, must include the following acknowledgment:
>    *       "This product includes software developed by the
>    *        Apache Software Foundation (http://www.apache.org/)."
>    *    Alternately, this acknowledgment may appear in the software itself,
>    *    if and wherever such third-party acknowledgments normally appear.
>    *
>    * 4. The names "Apache" and "Apache Software Foundation" and
>    *    "Apache Turbine" must not be used to endorse or promote products
>    *    derived from this software without prior written permission. For
>    *    written permission, please contact [EMAIL PROTECTED]
>    *
>    * 5. Products derived from this software may not be called "Apache",
>    *    "Apache Turbine", nor may "Apache" appear in their name, without
>    *    prior written permission of the Apache Software Foundation.
>    *
>    * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
>    * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
>    * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
>    * DISCLAIMED.  IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
>    * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
>    * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
>    * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
>    * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
>    * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
>    * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
>    * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
>    * SUCH DAMAGE.
>    * ====================================================================
>    *
>    * This software consists of voluntary contributions made by many
>    * individuals on behalf of the Apache Software Foundation.  For more
>    * information on the Apache Software Foundation, please see
>    * <http://www.apache.org/>.
>    */
>   
>   import org.apache.commons.lang.exception.NestableException;
>   
>   /**
>    * The base class of all exceptions thrown by the engine.
>    *
>    * @author <a href="mailto:[EMAIL PROTECTED]";>Daniel Rall</a>
>    * @author <a href="mailto:[EMAIL PROTECTED]";>Jason van Zyl</a>
>    * @version $Id: EngineException.java,v 1.1 2002/05/08 19:45:46 mpoeschl Exp $
>    */
>   public class EngineException extends NestableException
>   {
>   
>       /**
>        * Constructs a new <code>EngineException</code> without specified detail
>        * message.
>        */
>       public EngineException()
>       {
>       }
>   
>       /**
>        * Constructs a new <code>EngineException</code> with specified detail
>        * message.
>        *
>        * @param msg the error message.
>        */
>       public EngineException(String msg)
>       {
>           super(msg);
>       }
>   
>       /**
>        * Constructs a new <code>EngineException</code> with specified nested
>        * <code>Throwable</code>.
>        *
>        * @param nested the exception or error that caused this exception
>        *               to be thrown.
>        */
>       public EngineException(Throwable nested)
>       {
>           super(nested);
>       }
>   
>       /**
>        * Constructs a new <code>EngineException</code> with specified detail
>        * message and nested <code>Throwable</code>.
>        *
>        * @param msg the error message.
>        * @param nested the exception or error that caused this exception
>        *               to be thrown.
>        */
>       public EngineException(String msg, Throwable nested)
>       {
>           super(msg, nested);
>       }
>   }
>   
>   
>   
>
> --
> To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to