summaryrefslogtreecommitdiff
path: root/lang/java/src/com/sleepycat/db/MetaCheckSumFailException.java
blob: 456094839d231562dcd9d8dcf30e2397d68f4b52 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
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;
    }

}