Package acdp.exceptions
Class ConsistencyException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
acdp.exceptions.ACDPException
acdp.exceptions.ConsistencyException
- All Implemented Interfaces:
Serializable
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 Summary
ConstructorsConstructorDescriptionConsistencyException
(acdp.internal.Database_ db, int logicCN, int dataCN) The constructor. -
Method Summary
Methods inherited from class acdp.exceptions.ACDPException
compose, prefix, prefix, prefix, prefix, prefix, prefix, prefix
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
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.
-