KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > triactive > jdo > model > DuplicateFieldException


1 /*
2  * Copyright 2002 (C) TJDO.
3  * All rights reserved.
4  *
5  * This software is distributed under the terms of the TJDO License version 1.0.
6  * See the terms of the TJDO License in the documentation provided with this software.
7  *
8  * $Id: DuplicateFieldException.java,v 1.4 2003/02/05 18:15:06 jackknifebarber Exp $
9  */

10
11 package com.triactive.jdo.model;
12
13 import java.net.URL JavaDoc;
14
15
16 /**
17  * A <tt>DuplicateFieldException</tt> is thrown if more than one definition for
18  * the same field name is encountered in the XML metadata for a given
19  * persistence capable class.
20  *
21  * @author <a HREF="mailto:mmartin5@austin.rr.com">Mike Martin</a>
22  * @version $Revision: 1.4 $
23  *
24  * @see ClassMetaData
25  */

26
27 public class DuplicateFieldException extends XMLMetaDataException
28 {
29     /**
30      * Constructs a duplicate field exception with the specified detail message.
31      *
32      * @param url the URL of the resource containing the errant XML
33      * metadata.
34      * @param msg the detail message
35      */

36
37     public DuplicateFieldException(URL JavaDoc url, String JavaDoc msg)
38     {
39         super(url, msg);
40     }
41
42
43     /**
44      * Constructs a duplicate field exception with the specified detail message
45      * and nested exception.
46      *
47      * @param url the URL of the resource containing the errant XML
48      * metadata.
49      * @param msg the detail message
50      * @param nested the nested exception(s).
51      */

52
53     public DuplicateFieldException(URL JavaDoc url, String JavaDoc msg, Exception JavaDoc nested)
54     {
55         super(url, msg, nested);
56     }
57 }
58
Popular Tags