大网数据广告活动
磁盘与文件系统

Error Handling Parameters

· 52CE 我爱测

Learn more about: Error Handling Parameters

Applies to: Windows | Windows Server

Error Handling Parameters

This topic contains parameters that are used for error handling.

JET_paramErrorToString 70

This parameter can be used to convert a JET_ERR into a string. This is done using a special call to JetGetSystemParameter where the integer output buffer contains the JET_ERR value to be converted (as an input parameter) and the string output buffer returns the matching error string. The string will look something like this: "JET_errSuccess,Successful Operation". The string is composed of the symbolic name for the string, then a comma, and then a simple text description of the error. The description string may itself contain commas. If the error is not recognized then the string will be "Unknown Error,Unknown Error".

Note  This parameter is read only.

Label Value
Default Value: Special
Type: Special
Valid Range: Special
Scope: Global
Set After <a href="gg269354(v=exchg.10).md">JetCreateInstance</a>: No
Set after <a href="gg294068(v=exchg.10).md">JetInit</a>: No
Affects Physical Layout: No
Affects Reliability: No
Affects Performance: No
Affects Resources: No
Availability: All

JET_paramExceptionAction
98

This parameter controls what happens when an exception is thrown by the database engine or code that is called by the database engine. When set to JET_ExceptionMsgBox, any exception will be thrown to the Windows unhandled exception filter. This will result in the exception being handled as an application failure. The intent is to prevent application code from erroneously trying to catch and ignore an exception generated by the database engine. This cannot be allowed because database corruption could occur. If the application wishes to properly handle these exceptions then the protection can be disabled by setting this parameter to JET_ExceptionNone.

Label Value
Default Value: JET_ExceptionMsgBox
Type: Integer
Valid Range: JET_ExceptionMsgBox, JET_ExceptionNone
Scope: Global
Set After <a href="gg269354(v=exchg.10).md">JetCreateInstance</a>: Windows 2000, Windows XP and Windows Server 2003:    NoWindows Vista:  Yes
Set after <a href="gg294068(v=exchg.10).md">JetInit</a>: Windows 2000, Windows XP and Windows Server 2003:    NoWindows Vista:  Yes
Affects Physical Layout: No
Affects Reliability: Yes
Affects Performance: No
Affects Resources: No
Availability: All

Requirements

Requirement Value
Client Requires Windows Vista, Windows XP, or Windows 2000 Professional.
Server Requires Windows Server 2008, Windows Server 2003, or Windows 2000 Server.
Header Declared in Esent.h.

See Also

Error Handling Constants
Extensible Storage Engine Error Codes
JetCreateInstance
JET_ERR
JetInit

Source: Microsoft Learn / Windows Win32 documentation by Microsoft and contributors. Documentation licensed CC BY 4.0. Code samples are covered by the MIT License. Converted from Markdown, with links normalized and embedded media omitted.

资料来源与适用范围

资料来源
Microsoft Learn / Windows Win32 documentation
适用范围
Windows Win32 API · Source date 04/11/2016
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY 4.0 (documentation), MIT (code samples)

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。