2I-Berkeley DB: DbEnv.set_errcall[P

DbEnv.set_errcall





import com.sleepycat.db.*;

public interface DbErrcall{< public abstract void errcall(String prefix, String buffer);}public class DbEnv{, public void set_errcall(DbErrcall errcall); ...}





Description

EThe DbEnv.set_errcall method can be used to replace the mechanism forJreporting error messages to the user. By default, DB native methods writeHerror messages using the C library's stderr, which are often not visibleIin the Java environment. To allow alternative styles of error reporting,Fset_errcall can be called with a single object argument. The object'sHclass must implement the DbErrcall interface. When an error occurs, theIobject's errcall() method is invoked with two arguments; the first is theGprefix string (set by set_errpfx), the second will be the error messageIstring. It is up to this method to display the message in an appropriatemanner.



Class

3DbEnv



See Also

>DbEnv.appinit,>DbEnv.appexit,>DbEnv.version,FDbEnv.get_lg_info,FDbEnv.get_lk_info,FDbEnv.get_mp_info,FDbEnv.get_tx_info,dbenv_set_data_dir,DbEnv.set_errcall,PDbEnv.set_error_stream,DDbEnv.set_errpfx,DDbEnv.set_lg_max,PDbEnv.set_lk_conflicts,JDbEnv.set_lk_detect,HDbEnv.set_lk_modes,DDbEnv.set_lorder,NDbEnv.set_mp_mmapsize,FDbEnv.set_mp_size,DDbEnv.set_tx_max,andFDbEnv.set_verbose.
ÿÿ