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: TooManyForeignKeysException.java,v 1.3 2002/11/08 05:06:26 jackknifebarber Exp $
09: */
10:
11: package com.triactive.jdo.store;
12:
13: import javax.jdo.JDOFatalDataStoreException;
14:
15: /**
16: * A <tt>TooManyForeignKeysException</tt> is thrown when trying to add a foreign
17: * key to a table and the table already has the maximum allowed number of
18: * foreign keys.
19: *
20: * @author <a href="mailto:mmartin5@austin.rr.com">Mike Martin</a>
21: * @version $Revision: 1.3 $
22: *
23: * @see ForeignKeyIdentifier
24: */
25:
26: public class TooManyForeignKeysException extends
27: JDOFatalDataStoreException {
28: /**
29: * Constructs a too-many-foreign-keys exception.
30: *
31: * @param table The table that already has the maximum allowed number of
32: * foreign keys.
33: */
34:
35: public TooManyForeignKeysException(BaseTable table) {
36: super ("Exceeded maximum of "
37: + ForeignKeyIdentifier.MAX_FOREIGN_KEYS
38: + " foreign keys for table " + table);
39: }
40: }
|