KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > triactive > jdo > store > WrongPrecisionException


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: WrongPrecisionException.java,v 1.3 2002/11/08 05:06:26 jackknifebarber Exp $
9  */

10
11 package com.triactive.jdo.store;
12
13
14 /**
15  * A <tt>WrongPrecisionException</tt> is thrown if a column is detected to have
16  * the wrong precision in the database during schema validation.
17  *
18  * @author <a HREF="mailto:mmartin5@austin.rr.com">Mike Martin</a>
19  * @version $Revision: 1.3 $
20  *
21  * @see Column
22  */

23
24 public class WrongPrecisionException extends SchemaValidationException
25 {
26     /**
27      * Constructs a wrong precision exception.
28      *
29      * @param column The column having the wrong precision.
30      * @param expectedPrecision The expected precision of the column.
31      * @param actualPrecision The actual precision of the column.
32      */

33
34     public WrongPrecisionException(Column column, int expectedPrecision, int actualPrecision)
35     {
36         super("Wrong precision for column " + column + ": was " + actualPrecision + ", should be " + expectedPrecision);
37     }
38 }
39
Popular Tags