/* * - * See the file LICENSE for redistribution information. * * Copyright (c) 1997-2003 * Sleepycat Software. All rights reserved. * * $Id: DbErrorHandler.java,v 11.14 2003/11/28 18:35:43 bostic Exp $ */ package com.sleepycat.db; /** * An interface specifying a application-specific error reporting * function.
*/ public interface DbErrorHandler { /** * In some cases, when an error occurs, Berkeley DB will call the * DbErrorHandler interface with additional error information. It * is up to this interface to display the error message in an * appropriate manner.* *
* * @param errpfx the prefix string (as previously set by {@link * com.sleepycat.db.Db#setErrorPrefix Db.setErrorPrefix} or * {@link com.sleepycat.db.DbEnv#setErrorPrefix * DbEnv.setErrorPrefix}). * @param msg the error message string. * @param errpfx the prefix string (as previously set by {@link * com.sleepycat.db.Db#setErrorPrefix Db.setErrorPrefix} or * {@link com.sleepycat.db.DbEnv#setErrorPrefix * DbEnv.setErrorPrefix}). * @param msg the error message string. */ public abstract void error(String errpfx, String msg); }