org.datanucleus.store.rdbms.exceptions
Class WrongPrecisionException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.datanucleus.exceptions.NucleusException
org.datanucleus.exceptions.NucleusDataStoreException
org.datanucleus.store.exceptions.DatastoreValidationException
org.datanucleus.store.rdbms.exceptions.WrongPrecisionException
- All Implemented Interfaces:
- 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
| Fields inherited from class org.datanucleus.store.exceptions.DatastoreValidationException |
LOCALISER |
| Methods inherited from class org.datanucleus.exceptions.NucleusException |
getCause, getFailedObject, getNestedExceptions, isFatal, printStackTrace, printStackTrace, printStackTrace, setFatal |
WrongPrecisionException
public WrongPrecisionException(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(String columnName,
int expectedPrecision,
int actualPrecision,
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 © 2012. All Rights Reserved.