📄 error.so
字号:
m4_comment([$Id: error.so,v 10.20 2003/10/18 19:16:00 bostic Exp $])m4_ref_title(Environment, Error support,, env/open, env/db_config)m4_p([dnlm4_db offers programmatic support for displaying error return values.The m4_ref(dbenv_strerror) function returns a pointer to the errormessage corresponding to any m4_db error return. This is similar to theANSI C strerror interface, but can handle both system error returns andm4_db-specific return values.])m4_p([dnlFor example:])include(ref/env/error1.cs)m4_p([dnlThere are also two additional error methods: m4_ref(dbenv_err) andm4_ref(dbenv_errx). These methods work like the ANSI C printf function,taking a printf-style format string and argument list, and writing amessage constructed from the format string and arguments.])m4_p([dnlThe m4_ref(dbenv_err) function appends the standard error string to theconstructed message; the m4_ref(dbenv_errx) function does not.])m4_p([dnlError messages can be configured always to include a prefix (forexample, the program name) using the m4_refT(dbenv_set_errpfx).])m4_p([dnlThese functions provide simpler ways of displaying m4_db error messages:])include(ref/env/error2.cs)m4_p([dnlFor example, if the program was called "my_app", and it tried to openan environment home directory in "/tmp/home" and the open call returneda permission error, the error messages shown would look like this:])m4_indent([dnlmy_app: open: /tmp/home: Permission denied.my_app: contact your system administrator: session ID was 2])m4_page_footer
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -