void GetErrorInfo( int nIndex );
Parameters
nIndex
The index of the error information in the database engine’s Errors collection, for lookup by index.
Remarks
Call this member function to obtain the following kinds of information about the exception:
GetErrorInfo stores the information in the exception object’s m_pErrorInfo data member. For a brief description of the information returned, see m_pErrorInfo. If you catch an exception of type CDaoException thrown by MFC, the m_pErrorInfo member will already be filled in. If you choose to call DAO directly, you must call the exception object’s GetErrorInfo member function yourself to fill m_pErrorInfo. For a more detailed description, see the CDaoErrorInfo structure.
For information about DAO exceptions, and example code, see the article Exceptions: Database Exceptions. For more about getting information from DAO object collections, see the article DAO Collections: Obtaining Information About DAO Objects. Both articles are in Visual C++ Programmer's Guide.
CDaoException Overview | Class Members | Hierarchy Chart
See Also CDaoException::GetErrorCount