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: WrongPrecisionException.java,v 1.3 2002/11/08 05:06:26 jackknifebarber Exp $
09: */
10:
11: package com.triactive.jdo.store;
12:
13: /**
14: * A <tt>WrongPrecisionException</tt> is thrown if a column is detected to have
15: * the wrong precision in the database during schema validation.
16: *
17: * @author <a href="mailto:mmartin5@austin.rr.com">Mike Martin</a>
18: * @version $Revision: 1.3 $
19: *
20: * @see Column
21: */
22:
23: public class WrongPrecisionException extends SchemaValidationException {
24: /**
25: * Constructs a wrong precision exception.
26: *
27: * @param column The column having the wrong precision.
28: * @param expectedPrecision The expected precision of the column.
29: * @param actualPrecision The actual precision of the column.
30: */
31:
32: public WrongPrecisionException(Column column,
33: int expectedPrecision, int actualPrecision) {
34: super ("Wrong precision for column " + column + ": was "
35: + actualPrecision + ", should be " + expectedPrecision);
36: }
37: }
|