summaryrefslogtreecommitdiff
path: root/lang/java/src/com/sleepycat/db/HeapFullException.java
blob: 9faf60da77f5bdcd85d8ae36a4fce1910ea2e201 (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
34
/*-
 * See the file LICENSE for redistribution information.
 *
 * Copyright (c) 2011, 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 HeapFullException is thrown when an attempt was made to add or update a record
in a Heap database. However, the size of the database was constrained using
{@link com.sleepycat.db.DatabaseConfig#setHeapsize DatabaseConfig.setHeapsize},
and that limit has been reached.
*/
public class HeapFullException extends DatabaseException {
    private String message;

    /* package */ HeapFullException(final String message,
  				final int errno, final DbEnv dbenv) {
        super(message, errno, dbenv);
	this.message = message;
    }

   /** {@inheritDoc} */
    public String toString() {
        return message;
    }

}