logError (Log - Java™)
Records an error in a log.
Defined in
Syntax
public void logError(int code, String text)
throws NotesException
Parameters
int code
A number indicating which error occurred.
String text
A description of the error that occurred, as you want it to appear in the log.
Usage
The behavior of this method depends upon the type of log you open.
- If you open a Domino® database using openNotesLog, this method creates a new document in the database. The A$ERRCODE item in the document contains the code and the A$ERRMSG item contains the description.
- If you open a mail memo using openMailLog, this method adds the code and the description to the Body item of the memo, along with the current date and time.
- If you open a file using openFileLog, this method adds the code and the description to the next line of the file, along with the log's ProgramName and the current date and time.
Language cross-reference
LogError method in LotusScript® NotesLog class