Class WrongScaleException
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.WrongScaleException
- All Implemented Interfaces:
Serializable
public class WrongScaleException
extends org.datanucleus.exceptions.DatastoreValidationException
A WrongScaleException is thrown if a column is detected to have
the wrong scale in the database during schema validation.
- See Also:
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionWrongScaleException
(String columnName, int expectedScale, int actualScale) Constructs a wrong scale exception.WrongScaleException
(String columnName, int expectedScale, int actualScale, 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, setNestedException
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, setStackTrace, toString
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
-
Constructor Details
-
WrongScaleException
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
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.
-