/*-
 * See the file LICENSE for redistribution information.
 *
 * Copyright (c) 1997-2002
 *      Sleepycat Software.  All rights reserved.
 *
 * $Id: DbLockNotGrantedException.java,v 1.1.1.1 2003/11/20 22:13:33 toshok Exp $
 */

package com.sleepycat.db;

public class DbLockNotGrantedException extends DbException {
    public DbLockNotGrantedException(String message,
                                     int op, int mode, Dbt obj,
                                     DbLock lock, int index)
    {
        super(message, Db.DB_LOCK_NOTGRANTED);
        this.op = op;
        this.mode = mode;
        this.obj = obj;
        this.lock = lock;
        this.index = index;
    }

    public int get_op()
    {
        return op;
    }

    public int get_mode()
    {
        return mode;
    }

    public Dbt get_obj()
    {
        return obj;
    }

    public DbLock get_lock()
    {
        return lock;
    }

    public int get_index()
    {
        return index;
    }

    private int op;
    private int mode;
    private Dbt obj;
    private DbLock lock;
    private int index;

}

