logError
Writes an error message to the session log.
Use logError in any section of the Java editor except Import Packages.
Use the following syntax:
logError(String errorMessage);
Argument | Data Type | Input/Output | Description |
---|
errorMessage | String | Input | Error message string. |
Use the following Java code to log an error if the input field is null:
// Log an error if BASE_SALARY is null.
if (isNull("BASE_SALARY")) {
logError("Cannot process a null salary field.");
}
The following message appears in the message log:
[JTX_1013] [ERROR] Cannot process a null salary field.