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 |
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. |
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-2012 dtSearch Corp. All rights reserved.
|