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: TooManyIndicesException.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>TooManyIndicesException</tt> is thrown when trying to add an index
17: * to a table and the table already has the maximum allowed number of indices.
18: *
19: * @author <a href="mailto:mmartin5@austin.rr.com">Mike Martin</a>
20: * @version $Revision: 1.3 $
21: *
22: * @see IndexIdentifier
23: */
24:
25: public class TooManyIndicesException extends JDOFatalDataStoreException {
26: /**
27: * Constructs a too-many-indices exception.
28: *
29: * @param table The table that already has the maximum allowed number of
30: * indices.
31: */
32:
33: public TooManyIndicesException(BaseTable table) {
34: super ("Exceeded maximum of " + IndexIdentifier.MAX_INDICES
35: + " indices keys for table " + table);
36: }
37: }
|