Class 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:
    Serialized Form
    • Constructor Detail

      • WrongScaleException

        public WrongScaleException​(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​(String columnName,
                                   int expectedScale,
                                   int actualScale,
                                   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.