Class WrongPrecisionException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- org.datanucleus.exceptions.NucleusException
-
- org.datanucleus.exceptions.NucleusDataStoreException
-
- org.datanucleus.exceptions.DatastoreValidationException
-
- org.datanucleus.store.rdbms.exceptions.WrongPrecisionException
-
- All Implemented Interfaces:
java.io.Serializable
public class WrongPrecisionException extends org.datanucleus.exceptions.DatastoreValidationException
A WrongPrecisionException is thrown if a column is detected to have the wrong precision in the database during schema validation.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description private static long
serialVersionUID
-
Constructor Summary
Constructors Constructor Description 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, setNestedException
-
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
-
-
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.
-
-