You are here: C++ Support Classes > dtSearch Namespace > Classes > DJobBase Class > DJobBase::OnError Method
Close
dtSearch Text Retrieval Engine Programmer's Reference
DJobBase::OnError Method
Syntax
C++
virtual void OnError(long, const char *, const char *, const char *);
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.

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

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.

Copyright (c) 1995-2021 dtSearch Corp. All rights reserved.