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 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69
|
<! "@(#)set_errcall.so 10.6 (Sleepycat) 10/28/98">
<!Copyright 1997, 1998 by Sleepycat Software, Inc. All rights reserved.>
<html>
<body bgcolor=white>
<head>
<title>Berkeley DB: DbEnv.set_errcall</title>
<meta name="description" content="Berkeley DB: An embedded database programmatic toolkit.">
<meta name="keywords" content="embedded,database,programmatic,toolkit,b+tree,btr
ee,hash,hashing,transaction,transactions,locking,logging,access method,access me
thods,java,C,C++">
</head>
<h1>DbEnv.set_errcall</h1>
<hr size=1 noshade>
<tt>
<h3>
<pre>
import com.sleepycat.db.*;
<p>
public interface DbErrcall
{
public abstract void errcall(String prefix, String buffer);
}
public class DbEnv
{
public void set_errcall(DbErrcall errcall);
...
}
</pre>
</h3>
<h1>Description</h1>
The DbEnv.set_errcall method can be used to replace the mechanism for
reporting error messages to the user. By default, DB native methods write
error messages using the C library's stderr, which are often not visible
in the Java environment. To allow alternative styles of error reporting,
set_errcall can be called with a single object argument. The object's
class must implement the DbErrcall interface. When an error occurs, the
object's errcall() method is invoked with two arguments; the first is the
prefix string (set by set_errpfx), the second will be the error message
string. It is up to this method to display the message in an appropriate
manner.
<p>
<h1>Class</h1>
<a href="../../api_java/DbEnv/class.html">DbEnv</a>
<p>
<h1>See Also</h1>
<a href="../../api_java/DbEnv/appinit.html">DbEnv.appinit</a>,
<a href="../../api_java/DbEnv/appexit.html">DbEnv.appexit</a>,
<a href="../../api_java/DbEnv/version.html">DbEnv.version</a>,
<a href="../../api_java/DbEnv/get_lg_info.html">DbEnv.get_lg_info</a>,
<a href="../../api_java/DbEnv/get_lk_info.html">DbEnv.get_lk_info</a>,
<a href="../../api_java/DbEnv/get_mp_info.html">DbEnv.get_mp_info</a>,
<a href="../../api_java/DbEnv/get_tx_info.html">DbEnv.get_tx_info</a>,
dbenv_set_data_dir,
DbEnv.set_errcall,
<a href="../../api_java/DbEnv/set_error_stream.html">DbEnv.set_error_stream</a>,
<a href="../../api_java/DbEnv/set_errpfx.html">DbEnv.set_errpfx</a>,
<a href="../../api_java/DbEnv/set_lg_max.html">DbEnv.set_lg_max</a>,
<a href="../../api_java/DbEnv/set_lk_conflicts.html">DbEnv.set_lk_conflicts</a>,
<a href="../../api_java/DbEnv/set_lk_detect.html">DbEnv.set_lk_detect</a>,
<a href="../../api_java/DbEnv/set_lk_modes.html">DbEnv.set_lk_modes</a>,
<a href="../../api_java/DbEnv/set_lorder.html">DbEnv.set_lorder</a>,
<a href="../../api_java/DbEnv/set_mp_mmapsize.html">DbEnv.set_mp_mmapsize</a>,
<a href="../../api_java/DbEnv/set_mp_size.html">DbEnv.set_mp_size</a>,
<a href="../../api_java/DbEnv/set_tx_max.html">DbEnv.set_tx_max</a>,
and
<a href="../../api_java/DbEnv/set_verbose.html">DbEnv.set_verbose</a>.
</tt>
</body>
</html>
|