org.jpox.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 javax.jdo.JDOException
                  extended by javax.jdo.JDOCanRetryException
                      extended by javax.jdo.JDODataStoreException
                          extended by org.jpox.store.exceptions.SchemaValidationException
                              extended by org.jpox.store.rdbms.exceptions.WrongScaleException
All Implemented Interfaces:
java.io.Serializable

public class WrongScaleException
extends SchemaValidationException

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

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

Field Summary
 
Fields inherited from class org.jpox.store.exceptions.SchemaValidationException
LOCALISER
 
Constructor Summary
WrongScaleException(java.lang.String columnName, int expectedScale, int actualScale)
          Constructs a wrong scale exception.
 
Method Summary
 
Methods inherited from class javax.jdo.JDOException
getCause, getFailedObject, getNestedExceptions, initCause, printStackTrace, printStackTrace, printStackTrace, toString
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getLocalizedMessage, getMessage, getStackTrace, setStackTrace
 
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.


Copyright © -2011 . All Rights Reserved.