Class ChecksumException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.io.IOException
org.cojen.tupl.DatabaseException
org.cojen.tupl.CorruptDatabaseException
org.cojen.tupl.ChecksumException
- All Implemented Interfaces:
Serializable
Thrown when a page of data from the database is detected as being corrupt because the
stored checksum doesn't match what was freshly computed.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionChecksumException
(long pageId, int storedChecksum, int computedChecksum) ChecksumException
(long pageId, long storedChecksum, long computedChecksum) ChecksumException
(String message, long storedChecksum, long computedChecksum) -
Method Summary
Modifier and TypeMethodDescriptionlong
boolean
Returns false if database should be closed as a result of this exception.long
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
ChecksumException
public ChecksumException(long pageId, int storedChecksum, int computedChecksum) -
ChecksumException
public ChecksumException(long pageId, long storedChecksum, long computedChecksum) -
ChecksumException
-
-
Method Details
-
storedChecksum
public long storedChecksum() -
computedChecksum
public long computedChecksum() -
isRecoverable
public boolean isRecoverable()Description copied from class:DatabaseException
Returns false if database should be closed as a result of this exception.- Overrides:
isRecoverable
in classDatabaseException
-