org.datanucleus.store.rdbms.exceptions
Class WrongPrecisionException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by org.datanucleus.exceptions.NucleusException
                  extended by org.datanucleus.exceptions.NucleusDataStoreException
                      extended by org.datanucleus.store.exceptions.DatastoreValidationException
                          extended by org.datanucleus.store.rdbms.exceptions.WrongPrecisionException
All Implemented Interfaces:
java.io.Serializable

public class WrongPrecisionException
extends org.datanucleus.store.exceptions.DatastoreValidationException

A WrongPrecisionException is thrown if a column is detected to have the wrong precision in the database during schema validation.

Version:
$Revision: 1.3 $
See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.datanucleus.store.exceptions.DatastoreValidationException
LOCALISER
 
Constructor Summary
WrongPrecisionException(java.lang.String columnName, int expectedPrecision, int actualPrecision)
          Constructs a wrong precision exception.
WrongPrecisionException(java.lang.String columnName, int expectedPrecision, int actualPrecision, java.lang.String fieldName)
          Constructs a wrong precision exception.
 
Method Summary
 
Methods inherited from class org.datanucleus.exceptions.NucleusException
getCause, getFailedObject, getNestedExceptions, isFatal, printStackTrace, printStackTrace, printStackTrace, setFatal
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getLocalizedMessage, getMessage, getStackTrace, initCause, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

WrongPrecisionException

public WrongPrecisionException(java.lang.String columnName,
                               int expectedPrecision,
                               int actualPrecision)
Constructs a wrong precision exception.

Parameters:
columnName - Name of the column having the wrong precision.
expectedPrecision - The expected precision of the column.
actualPrecision - The actual precision of the column.

WrongPrecisionException

public WrongPrecisionException(java.lang.String columnName,
                               int expectedPrecision,
                               int actualPrecision,
                               java.lang.String fieldName)
Constructs a wrong precision exception.

Parameters:
columnName - Name of the column having the wrong precision.
expectedPrecision - The expected precision of the column.
actualPrecision - The actual precision of the column.
fieldName - The field name.


Copyright © 2009. All Rights Reserved.