Class ConsistencyException

All Implemented Interfaces:
Serializable

public final class ConsistencyException extends ACDPException
Thrown if the value of the consistency number given at the time a strongly typed database is opened differs from the value of the consistency number stored in the database layout. Signals that the logic of a strongly typed database is inconsistent with the data stored in that database.

The different consistency numbers can be retrieved invoking the logicCN() and dataCN() methods.

Author:
Beat Hörmann
See Also:
  • Constructor Details

    • ConsistencyException

      public ConsistencyException(acdp.internal.Database_ db, int logicCN, int dataCN)
      The constructor.
      Parameters:
      db - The database.
      logicCN - The consistency number of the logic.
      dataCN - The consistency number of the data.
  • Method Details

    • logicCN

      public final int logicCN()
      Returns the consistency number of the custom database logic.
      Returns:
      The consistency number of the custom database logic.
    • dataCN

      public final int dataCN()
      Returns the consistency number as stored in the database.
      Returns:
      The consistency number as stored in the database.