diff options
Diffstat (limited to 'lang/java/src/com/sleepycat/db/MetaCheckSumFailException.java')
| -rw-r--r-- | lang/java/src/com/sleepycat/db/MetaCheckSumFailException.java | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/lang/java/src/com/sleepycat/db/MetaCheckSumFailException.java b/lang/java/src/com/sleepycat/db/MetaCheckSumFailException.java new file mode 100644 index 00000000..45609483 --- /dev/null +++ b/lang/java/src/com/sleepycat/db/MetaCheckSumFailException.java @@ -0,0 +1,33 @@ +/*- + * See the file LICENSE for redistribution information. + * + * Copyright (c) 2014, 2015 Oracle and/or its affiliates. All rights reserved. + * + * $Id$ + */ +package com.sleepycat.db; + +import com.sleepycat.db.internal.DbConstants; +import com.sleepycat.db.internal.DbEnv; + + +/** +A MetaCheckSumFailException is thrown when a checksum mismatch is detected +on a database metadata page. Either the database is corrupted or the file +is not a Berkeley DB database file. +*/ +public class MetaCheckSumFailException extends DatabaseException { + private String message; + + /* package */ MetaCheckSumFailException(final String message, + final int errno, final DbEnv dbenv) { + super(message, errno, dbenv); + this.message = message; + } + + /** {@inheritDoc} */ + public String toString() { + return message; + } + +} |
