Class IncompatibleDataTypeException

  • All Implemented Interfaces:
    java.io.Serializable

    public class IncompatibleDataTypeException
    extends org.datanucleus.exceptions.DatastoreValidationException
    A IncompatibleDataTypeException is thrown if a column is detected to have an incompatible type in the database during schema validation.
    See Also:
    Column, Serialized Form
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private static long serialVersionUID  
    • Constructor Summary

      Constructors 
      Constructor Description
      IncompatibleDataTypeException​(Column column, int expectedType, int actualType)
      Constructs an incompatible data type 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
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • IncompatibleDataTypeException

        public IncompatibleDataTypeException​(Column column,
                                             int expectedType,
                                             int actualType)
        Constructs an incompatible data type exception.
        Parameters:
        column - The column having an incompatible data type.
        expectedType - The expected java.sql.Type of the column taken from the metadata.
        actualType - The actual java.sql.Type of the column taken from the database.