Software: Apache/2.0.54 (Fedora). PHP/5.0.4 uname -a: Linux mina-info.me 2.6.17-1.2142_FC4smp #1 SMP Tue Jul 11 22:57:02 EDT 2006 i686 uid=48(apache) gid=48(apache) groups=48(apache) Safe-mode: OFF (not secure) /usr/bin/X11/./../../share/doc/MySQL-python-1.2.0/../db4-devel-4.3.27/ref/upgrade.4.3/../env/ drwxr-xr-x | |
| Viewing file: Select action/file-type:
Error supportBerkeley DB offers programmatic support for displaying error return values. The db_strerror function returns a pointer to the error message corresponding to any Berkeley DB error return. This is similar to the ANSI C strerror interface, but can handle both system error returns and Berkeley DB-specific return values. For example:
There are also two additional error methods: DB_ENV->err and DB_ENV->errx. These methods work like the ANSI C printf function, taking a printf-style format string and argument list, and writing a message constructed from the format string and arguments. The DB_ENV->err function appends the standard error string to the constructed message; the DB_ENV->errx function does not. Error messages can be configured always to include a prefix (for example, the program name) using the DB_ENV->set_errpfx method. These functions provide simpler ways of displaying Berkeley DB error messages:
For example, if the program was called "my_app", and it tried to open an environment home directory in "/tmp/home" and the open call returned a permission error, the error messages shown would look like this: my_app: open: /tmp/home: Permission denied. my_app: contact your system administrator: session ID was 2
Copyright (c) 1996-2004 Sleepycat Software, Inc. - All rights reserved. |
:: Command execute :: | |
--[ c99shell v. 1.0 pre-release build #16 powered by Captain Crunch Security Team | http://ccteam.ru | Generation time: 0.0053 ]-- |