org.datanucleus.store.rdbms.exceptions
Class WrongScaleException

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.WrongScaleException
All Implemented Interfaces:
java.io.Serializable

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

A WrongScaleException is thrown if a column is detected to have the wrong scale 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
WrongScaleException(java.lang.String columnName, int expectedScale, int actualScale)
          Constructs a wrong scale exception.
WrongScaleException(java.lang.String columnName, int expectedScale, int actualScale, java.lang.String fieldName)
          Constructs a wrong scale 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

WrongScaleException

public WrongScaleException(java.lang.String columnName,
                           int expectedScale,
                           int actualScale)
Constructs a wrong scale exception.

Parameters:
columnName - Name of the column having the wrong scale.
expectedScale - The expected scale of the column.
actualScale - The actual scale of the column.

WrongScaleException

public WrongScaleException(java.lang.String columnName,
                           int expectedScale,
                           int actualScale,
                           java.lang.String fieldName)
Constructs a wrong scale exception.

Parameters:
columnName - Name of the column having the wrong scale.
expectedScale - The expected scale of the column.
actualScale - The actual scale of the column.
fieldName - The field name.


Copyright © 2009. All Rights Reserved.