Click or drag to resize

DbServer.ErrInfo Property (Typed)

X#
An Error object identifying the error condition after the last operation.

Namespace:  XSharp.VO.SDK
Assembly:  XSharp.VORDDClasses (in XSharp.VORDDClasses.dll) Version: 2.21
Syntax
 VIRTUAL PROPERTY ErrInfo AS Error GET 
Request Example View Source

Property Value

Type: Error
An Error object identifying the error condition after the last operation.
Remarks
An Error object identifying the error condition after the last operation. If the last operation was successful, DBServer:ErrInfo returns NULL_OBJECT.
Examples
This example demonstrates a SEQUENCE construct in which ErrInfo is passed to the RECOVER USING statement:
X#
 1CLASS Sales INHERIT DBServer
 2...
 3FUNCTION EOFDemo()
 4LOCAL oDBSales AS Sales
 5oDBSales := Sales{}
 6BEGIN SEQUENCE
 7.
 8. <Some statements that may fail>
 9.
10RECOVER USING oDBSales:ErrInfo
11.
12. <Some recovery statements>
13.
14END SEQUENCE
See Also