01: /*
02: * Copyright 2002 (C) TJDO.
03: * All rights reserved.
04: *
05: * This software is distributed under the terms of the TJDO License version 1.0.
06: * See the terms of the TJDO License in the documentation provided with this software.
07: *
08: * $Id: DuplicateFieldException.java,v 1.4 2003/02/05 18:15:06 jackknifebarber Exp $
09: */
10:
11: package com.triactive.jdo.model;
12:
13: import java.net.URL;
14:
15: /**
16: * A <tt>DuplicateFieldException</tt> is thrown if more than one definition for
17: * the same field name is encountered in the XML metadata for a given
18: * persistence capable class.
19: *
20: * @author <a href="mailto:mmartin5@austin.rr.com">Mike Martin</a>
21: * @version $Revision: 1.4 $
22: *
23: * @see ClassMetaData
24: */
25:
26: public class DuplicateFieldException extends XMLMetaDataException {
27: /**
28: * Constructs a duplicate field exception with the specified detail message.
29: *
30: * @param url the URL of the resource containing the errant XML
31: * metadata.
32: * @param msg the detail message
33: */
34:
35: public DuplicateFieldException(URL url, String msg) {
36: super (url, msg);
37: }
38:
39: /**
40: * Constructs a duplicate field exception with the specified detail message
41: * and nested exception.
42: *
43: * @param url the URL of the resource containing the errant XML
44: * metadata.
45: * @param msg the detail message
46: * @param nested the nested exception(s).
47: */
48:
49: public DuplicateFieldException(URL url, String msg, Exception nested) {
50: super(url, msg, nested);
51: }
52: }
|