Links
dtSearch Text Retrieval Engine Programmer's Reference 7.70
DJobBase::OnError Method
DJobBase Class | DJobBase Class | dtSearch Namespace | Send Feedback

Called while a job is executing if an error is encountered, with the error code and message.

virtual void OnError(long, const char *, const char *, const char *);
Parameters
Parameters 
Description 
errorCode 
A code in the ErrorCodes enumeration identifying the error 
message 
Text version of the error message 
arg1 
For messages that relate to a file or path, such as "Unable to access index", the file or path that the error concerns. 
arg2 
Not used. 
Remarks

Unless your program needs to react to errors immediately, it is usually easier to call GetErrors() after the job returns to see if anything went wrong.

Class
Links
You are here: C++ Support Classes > dtSearch Namespace > Classes > DJobBase Class > DJobBase::OnError Method
Copyright (c) 1995-2012 dtSearch Corp. All rights reserved.